fix Segmentation fault with --va-derive=on (github #5)
This commit is contained in:
parent
843d79cb64
commit
586d14e848
2 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,6 @@ steps:
|
|||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
- dev
|
||||
event:
|
||||
exclude:
|
||||
|
|
1
va.c
1
va.c
|
@ -294,6 +294,7 @@ int va_init() {
|
|||
if ((s = vaDeriveImage(va->dpy, va->surface_id, va->image)) == VA_STATUS_SUCCESS) {
|
||||
char found = 0;
|
||||
for (int i = 0; i < KMSVNC_ARRAY_ELEMENTS(format_to_try); i++) {
|
||||
if (format_to_try[i].fmt == NULL) continue;
|
||||
if (va->image->format.fourcc == format_to_try[i].fmt->fourcc) {
|
||||
found = 1;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue