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:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- master
|
|
||||||
- dev
|
- dev
|
||||||
event:
|
event:
|
||||||
exclude:
|
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) {
|
if ((s = vaDeriveImage(va->dpy, va->surface_id, va->image)) == VA_STATUS_SUCCESS) {
|
||||||
char found = 0;
|
char found = 0;
|
||||||
for (int i = 0; i < KMSVNC_ARRAY_ELEMENTS(format_to_try); i++) {
|
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) {
|
if (va->image->format.fourcc == format_to_try[i].fmt->fourcc) {
|
||||||
found = 1;
|
found = 1;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue