diff --git a/.drone.yml b/.drone.yml index a48fba9..352fef6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,7 +14,6 @@ steps: trigger: branch: - - master - dev event: exclude: diff --git a/va.c b/va.c index 49d13a8..85eb559 100644 --- a/va.c +++ b/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;