glupload: only try the glmemory upload for sysmem/glmemory caps features

Allows selecting/testing the upload path with explicit caps features.
This commit is contained in:
Matthew Waters 2015-02-03 00:35:26 +11:00 committed by Tim-Philipp Müller
parent c2149ec12c
commit f180fe8dc8

View file

@ -155,6 +155,12 @@ _gl_memory_upload_accept (gpointer impl, GstBuffer * buffer, GstCaps * in_caps,
if (!gst_caps_features_is_equal (features, gl_features))
ret = FALSE;
features = gst_caps_get_features (in_caps, 0);
if (!gst_caps_features_is_equal (features, gl_features)
&& !gst_caps_features_is_equal (features,
GST_CAPS_FEATURES_MEMORY_SYSTEM_MEMORY))
ret = FALSE;
gst_caps_features_free (gl_features);
if (!ret)