From: Julien Isorce Date: Wed, 19 Oct 2016 14:33:41 +0000 (+0100) Subject: vaapipostproc: texture upload if driver supports GL X-Git-Tag: 1.19.3~503^2~1078 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d86b3f40aee44379edf2fbd4dc493f255b3eaef;p=platform%2Fupstream%2Fgstreamer.git vaapipostproc: texture upload if driver supports GL Removes GstVideoGLTextureUploadMeta caps feature if the driver doesn't support opengl. Signed-off-by: Víctor Manuel Jáquez Leal https://bugzilla.gnome.org/show_bug.cgi?id=772838 --- diff --git a/gst/vaapi/gstvaapipostproc.c b/gst/vaapi/gstvaapipostproc.c index cb48ed3..f4ddbb5 100644 --- a/gst/vaapi/gstvaapipostproc.c +++ b/gst/vaapi/gstvaapipostproc.c @@ -1065,7 +1065,9 @@ expand_allowed_srcpad_caps (GstVaapiPostproc * postproc, GstCaps * caps) } g_value_unset (&value); - if (GST_VAAPI_PLUGIN_BASE_SRC_PAD_CAN_DMABUF (postproc) + if ((GST_VAAPI_PLUGIN_BASE_SRC_PAD_CAN_DMABUF (postproc) + || !gst_vaapi_display_has_opengl (GST_VAAPI_PLUGIN_BASE_DISPLAY + (postproc))) && gl_upload_meta_idx > -1) { gst_caps_remove_structure (caps, gl_upload_meta_idx); }