vaapidecodebin: don't force NV12 since P010_10LE is now possible

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/360>
This commit is contained in:
Víctor Manuel Jáquez Leal 2020-07-13 11:06:18 +02:00
parent b1832223ff
commit f1c44411f3

View file

@ -313,9 +313,8 @@ gst_vaapi_decode_bin_configure (GstVaapiDecodeBin * vaapidecbin)
GST_INFO_OBJECT (vaapidecbin, "enabling VPP");
/* capsfilter to avoid negotiation with vaapidecode */
caps = gst_caps_from_string
("video/x-raw(memory:VASurface), format=(string)NV12");
/* capsfilter to force memory:VASurface */
caps = gst_caps_from_string ("video/x-raw(memory:VASurface)");
if (!caps)
goto error_cannot_set_caps;
capsfilter = gst_element_factory_make ("capsfilter", NULL);