From 2c27ec37949f412752edfa78e6698442e8a1d760 Mon Sep 17 00:00:00 2001 From: Ezequiel Garcia Date: Fri, 12 Oct 2018 16:13:05 -0300 Subject: [PATCH] Add settable attributes to pixelformats Apparently, pixelformats are expected to be settable although the reason is not exactly clear to me. However, intel vaapi driver sets all its pixelformats as settable, and gstreamer-vaapi expects that as well. Signed-off-by: Ezequiel Garcia --- src/surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/surface.c b/src/surface.c index ab06619..2a5bb23 100644 --- a/src/surface.c +++ b/src/surface.c @@ -342,7 +342,7 @@ VAStatus RequestQuerySurfaceAttributes(VADriverContextP context, memset(attributes_list, 0, attributes_list_size); attributes_list[i].type = VASurfaceAttribPixelFormat; - attributes_list[i].flags = VA_SURFACE_ATTRIB_GETTABLE; + attributes_list[i].flags = VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE; attributes_list[i].value.type = VAGenericValueTypeInteger; attributes_list[i].value.value.i = VA_FOURCC_NV12; i++;