summaryrefslogtreecommitdiff
path: root/gst/vaapi/gstvaapipostproc.c
diff options
context:
space:
mode:
authorJulien Isorce <j.isorce@samsung.com>2016-10-19 15:33:41 +0100
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2017-03-03 20:01:33 +0100
commit8d86b3f40aee44379edf2fbd4dc493f255b3eaef (patch)
tree690427cdf2a584413772eb392d0422c0a3ee6a8d /gst/vaapi/gstvaapipostproc.c
parentbce6e1416b322cff6c159f10b4db72bb3d96b5a6 (diff)
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 <victorx.jaquez@intel.com> https://bugzilla.gnome.org/show_bug.cgi?id=772838
Diffstat (limited to 'gst/vaapi/gstvaapipostproc.c')
-rw-r--r--gst/vaapi/gstvaapipostproc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/vaapi/gstvaapipostproc.c b/gst/vaapi/gstvaapipostproc.c
index cb48ed36..f4ddbb51 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);
}