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 <ezequiel@collabora.com>
This commit is contained in:
+1
-1
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user