From: Haihua Hu Date: Tue, 2 May 2017 05:24:30 +0000 (+0800) Subject: glupload: passthrough composition caps features in directviv upload X-Git-Tag: 1.12.2~78 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=beab3845574700784a0a2a41a626527bd241cfa1;p=platform%2Fupstream%2Fgst-plugins-bad.git glupload: passthrough composition caps features in directviv upload https://bugzilla.gnome.org/show_bug.cgi?id=782046 --- diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c index 9b81892..2b51bfa 100644 --- a/gst-libs/gst/gl/gstglupload.c +++ b/gst-libs/gst/gl/gstglupload.c @@ -1267,8 +1267,13 @@ _directviv_upload_transform_caps (gpointer impl, GstGLContext * context, gst_caps_unref (ret); ret = tmp; } else { - ret = gst_caps_from_string (GST_VIDEO_CAPS_MAKE_WITH_FEATURES + GstCaps *tmp; + tmp = gst_caps_from_string (GST_VIDEO_CAPS_MAKE_WITH_FEATURES (GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY, GST_GL_DIRECTVIV_FORMAT)); + ret = + _set_caps_features_with_passthrough (tmp, + GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY, passthrough); + gst_caps_unref (tmp); } gst_caps_features_free (passthrough);