From: Michael Olbrich Date: Thu, 5 Jul 2018 13:17:30 +0000 (+0200) Subject: glupload: allow system memory for dmabuf in transform_caps X-Git-Tag: 1.19.3~511^2~1413 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f3292dc1561a8d62812c3f1a2bb3de5c5bb6a807;p=platform%2Fupstream%2Fgstreamer.git glupload: allow system memory for dmabuf in transform_caps This should not be necessary, but currently not all plugins that provide dmabuf memory announce this with caps features, e.g. v4l2. The static caps already contain the system memory. It didn't break before because other upload methods provide the necessary transformation. https://bugzilla.gnome.org/show_bug.cgi?id=783521 --- diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c index 81e7f61..9df6c2a 100644 --- a/gst-libs/gst/gl/gstglupload.c +++ b/gst-libs/gst/gl/gstglupload.c @@ -536,10 +536,16 @@ _dma_buf_upload_transform_caps (gpointer impl, GstGLContext * context, ret = tmp; } else { gint i, n; + GstCaps *tmp; ret = _set_caps_features_with_passthrough (caps, GST_CAPS_FEATURE_MEMORY_DMABUF, passthrough); + tmp = + _set_caps_features_with_passthrough (caps, + GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY, passthrough); + gst_caps_append (ret, tmp); + n = gst_caps_get_size (ret); for (i = 0; i < n; i++) {