mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
vaapidecode: texture upload if driver supports GL
When the allowed source pad caps are generated, the GLTextureUpload caps are only inserted if the driver support OpenGL. https://bugzilla.gnome.org/show_bug.cgi?id=772838
This commit is contained in:
parent
e0891d93ce
commit
bce6e1416b
1 changed files with 2 additions and 1 deletions
|
@ -219,7 +219,8 @@ gst_vaapidecode_ensure_allowed_srcpad_caps (GstVaapiDecode * decode)
|
|||
return FALSE;
|
||||
}
|
||||
#if (USE_GLX || USE_EGL)
|
||||
if (!GST_VAAPI_PLUGIN_BASE_SRC_PAD_CAN_DMABUF (decode)) {
|
||||
if (!GST_VAAPI_PLUGIN_BASE_SRC_PAD_CAN_DMABUF (decode) &&
|
||||
gst_vaapi_display_has_opengl (GST_VAAPI_PLUGIN_BASE_DISPLAY (decode))) {
|
||||
out_caps = gst_caps_make_writable (out_caps);
|
||||
gst_caps_append (out_caps,
|
||||
gst_caps_from_string (GST_VAAPI_MAKE_GLTEXUPLOAD_CAPS));
|
||||
|
|
Loading…
Reference in a new issue