From cb81acd48ce04ae94757e6ec81a915863d51872e Mon Sep 17 00:00:00 2001 From: Matthieu Bouron Date: Tue, 17 Dec 2013 15:27:10 +0000 Subject: [PATCH] vaapidecode: add system memory caps to template caps. Since vaapidecode provides buffer that can be mapped as regular memory, those caps should be added to the template caps. That only applies to GStreamer >= 1.2. https://bugzilla.gnome.org/show_bug.cgi?id=720608 Signed-off-by: Gwenole Beauchesne --- gst/vaapi/gstvaapidecode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index 8d4e4753b8..b3519a9761 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -75,7 +75,8 @@ static const char gst_vaapidecode_src_caps_str[] = GST_VIDEO_CAPS_MAKE_WITH_FEATURES( GST_CAPS_FEATURE_MEMORY_VAAPI_SURFACE, "{ ENCODED, NV12, I420, YV12 }") ";" GST_VIDEO_CAPS_MAKE_WITH_FEATURES( - GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META, "RGBA"); + GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META, "RGBA") ";" + GST_VIDEO_CAPS_MAKE("{ NV12, I420, YV12 }"); #else GST_VAAPI_SURFACE_CAPS; #endif