mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
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:
parent
46ecf99a8a
commit
73c2ab70fc
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue