mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
glupload: Only offer DMABuf caps feature if using EGL
This was miss-leading VAAPI which was not forcing linear back buffers, would still export DMABuf. That caused bad rendering as the buffers are tiled and most likely compressed. https://bugzilla.gnome.org/show_bug.cgi?id=796822
This commit is contained in:
parent
53ae7df2e2
commit
63cf6b4203
1 changed files with 9 additions and 0 deletions
|
@ -512,6 +512,15 @@ _dma_buf_upload_transform_caps (gpointer impl, GstGLContext * context,
|
||||||
(GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION);
|
(GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION);
|
||||||
GstCaps *ret;
|
GstCaps *ret;
|
||||||
|
|
||||||
|
if (context) {
|
||||||
|
/* Don't propose DMABuf caps feature unless it can be supported */
|
||||||
|
if (gst_gl_context_get_gl_platform (context) != GST_GL_PLATFORM_EGL)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
if (!gst_gl_context_check_feature (context, "EGL_KHR_image_base"))
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (direction == GST_PAD_SINK) {
|
if (direction == GST_PAD_SINK) {
|
||||||
GstCaps *tmp;
|
GstCaps *tmp;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue