diff --git a/packages/multimedia/libva-driver-intel/patches.upstream/libva-driver-intel-fix-surface_empty.patch b/packages/multimedia/libva-driver-intel/patches.upstream/libva-driver-intel-fix-surface_empty.patch new file mode 100644 index 0000000000..a912d87883 --- /dev/null +++ b/packages/multimedia/libva-driver-intel/patches.upstream/libva-driver-intel-fix-surface_empty.patch @@ -0,0 +1,16 @@ +diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c +index 31dafa2..a58eb7b 100755 +--- a/src/i965_drv_video.c ++++ b/src/i965_drv_video.c +@@ -2358,7 +2358,11 @@ i965_QuerySurfaceStatus(VADriverContextP ctx, + *status = VASurfaceReady; + } + } else { ++#ifdef HAVE_VA_SURFACE_STATUS_EMPTY ++ *status = VASurfaceReady | VASurfaceEmpty; ++#else + *status = VASurfaceReady; ++#endif + } + + return VA_STATUS_SUCCESS;