summaryrefslogtreecommitdiff
path: root/gst/vaapi
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2020-02-07 16:50:52 +0100
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2020-07-27 19:01:54 +0200
commitf04dd7f33100ead30d98e5c76d42ee24290fa771 (patch)
tree30c3ff349db3076c45f2c4c73ad9debe16c54f11 /gst/vaapi
parentafe49e9fdb3b071e693c1cbf268510b89d1cea2e (diff)
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/366>
Diffstat (limited to 'gst/vaapi')
-rw-r--r--gst/vaapi/gstvaapidecode.c8
1 files changed, 4 insertions, 4 deletions
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(