From 200b1baabc066f8a4102f82f539655d588200ec9 Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Sat, 14 Mar 2015 22:12:19 +0200 Subject: [PATCH] vaapidisplay: mark X11 display as compatible with EGL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GST_GL_WINDOW=x11 GST_GL_API=gles2 GST_GL_PLATFORM=egl gst-launch-1.0 ... ! vaapidecode ! glimagesink https://bugzilla.gnome.org/show_bug.cgi?id=745902 Signed-off-by: Víctor Manuel Jáquez Leal --- gst-libs/gst/vaapi/gstvaapidisplay.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst-libs/gst/vaapi/gstvaapidisplay.c b/gst-libs/gst/vaapi/gstvaapidisplay.c index 3fe523bb84..44b6f00a1f 100644 --- a/gst-libs/gst/vaapi/gstvaapidisplay.c +++ b/gst-libs/gst/vaapi/gstvaapidisplay.c @@ -205,6 +205,10 @@ gst_vaapi_display_type_is_compatible (GstVaapiDisplayType type1, if (type2 == GST_VAAPI_DISPLAY_TYPE_X11) return TRUE; break; + case GST_VAAPI_DISPLAY_TYPE_X11: + if (type2 == GST_VAAPI_DISPLAY_TYPE_EGL) + return TRUE; + break; default: break; }