vaapidecode: relax guards for memory:VASurface capsfeature
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Fri, 16 Oct 2015 13:55:40 +0000 (15:55 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Tue, 20 Oct 2015 10:32:44 +0000 (12:32 +0200)
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 <victorx.jaquez@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=756686

gst/vaapi/gstvaapidecode.c

index f142b0ab7b244afc9c8bdc0fb18d44b485e48a27..3c944de1365420bad781f96509f855fd81adcaee 100644 (file)
@@ -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);