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
@ -1065,7 +1065,9 @@ expand_allowed_srcpad_caps (GstVaapiPostproc * postproc, GstCaps * caps)
|
|||||||
}
|
}
|
||||||
g_value_unset (&value);
|
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) {
|
&& gl_upload_meta_idx > -1) {
|
||||||
gst_caps_remove_structure (caps, gl_upload_meta_idx);
|
gst_caps_remove_structure (caps, gl_upload_meta_idx);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user