mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
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
This commit is contained in:
parent
bce6e1416b
commit
8d86b3f40a
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue