From b76f4825c5e57609b8179f886c371f33bdd6b138 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Fri, 16 Oct 2015 15:55:40 +0200 Subject: [PATCH] vaapidecode: relax guards for memory:VASurface capsfeature MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Though caps features are supported since GStreamer 1.2, there are some issues with the features caps negotiation in that version. Nonetheless, those issues are fixed in GStreamer 1.4. So, the memoy:VASurface caps feature negotiation is relaxed for GStreamer 1.4. The guard is the same as in vaapisink's caps template. Signed-off-by: Víctor Manuel Jáquez Leal https://bugzilla.gnome.org/show_bug.cgi?id=756686 --- gst/vaapi/gstvaapidecode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index f142b0a..3c944de 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -218,7 +218,7 @@ gst_vaapidecode_update_src_caps (GstVaapiDecode * decode) (GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META, NULL); break; #endif -#if GST_CHECK_VERSION(1,5,0) +#if GST_CHECK_VERSION(1,3,1) case GST_VAAPI_CAPS_FEATURE_VAAPI_SURFACE: features = gst_caps_features_new (GST_CAPS_FEATURE_MEMORY_VAAPI_SURFACE, NULL); -- 2.7.4