From f04dd7f33100ead30d98e5c76d42ee24290fa771 Mon Sep 17 00:00:00 2001 From: Víctor Manuel Jáquez Leal Date: Fri, 7 Feb 2020 16:50:52 +0100 Subject: vaapidecode: reorder src caps template Since negotiation depends on caps order, first is VA, then DMABuf, later GLUploadTexture (deprecated) and finally raw. Also, for decoders, the possible available color formats for DMABuf is extended to all the possible VA color formats. Part-of: --- gst/vaapi/gstvaapidecode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gst/vaapi') diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index 0f631e70..c1be7ba4 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -78,12 +78,12 @@ static const char gst_vaapidecode_sink_caps_str[] = ; static const char gst_vaapidecode_src_caps_str[] = - GST_VAAPI_MAKE_SURFACE_CAPS ";" + GST_VAAPI_MAKE_SURFACE_CAPS "; " + GST_VIDEO_CAPS_MAKE_WITH_FEATURES(GST_CAPS_FEATURE_MEMORY_DMABUF, GST_VAAPI_FORMATS_ALL) " ;" #if (USE_GLX || USE_EGL) - GST_VAAPI_MAKE_GLTEXUPLOAD_CAPS ";" + GST_VAAPI_MAKE_GLTEXUPLOAD_CAPS "; " #endif - GST_VIDEO_CAPS_MAKE(GST_VAAPI_FORMATS_ALL) ";" - GST_VAAPI_MAKE_DMABUF_CAPS; + GST_VIDEO_CAPS_MAKE(GST_VAAPI_FORMATS_ALL); static GstStaticPadTemplate gst_vaapidecode_src_factory = GST_STATIC_PAD_TEMPLATE( -- cgit v1.2.3