summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2016-06-16 00:44:16 +1000
committerJan Schmidt <jan@centricular.com>2016-08-16 02:31:54 +1000
commitb8155ed1f14e9b06b5d741317d028d279e6d425f (patch)
tree9b5025ee803343bc812c30dc81188114b18cbdd2
parentd808fc5a4274c1b4fb0d2fa5a5414bd952242094 (diff)
downloadgstreamer-plugins-bad-b8155ed1f14e9b06b5d741317d028d279e6d425f.tar.gz
qmlglsink: also allow wayland-egl as a platform name
-rw-r--r--ext/qt/qtitem.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/qt/qtitem.cc b/ext/qt/qtitem.cc
index 2df087e7d..8a73ed426 100644
--- a/ext/qt/qtitem.cc
+++ b/ext/qt/qtitem.cc
@@ -143,13 +143,16 @@ QtGLVideoItem::QtGLVideoItem()
g_mutex_init (&this->priv->lock);
+ GST_INFO ("QGuiApplication::instance()->platformName() %s", app->platformName().toUtf8().data());
+
#if GST_GL_HAVE_WINDOW_X11 && defined (HAVE_QT_X11)
if (QString::fromUtf8 ("xcb") == app->platformName())
this->priv->display = (GstGLDisplay *)
gst_gl_display_x11_new_with_display (QX11Info::display ());
#endif
#if GST_GL_HAVE_WINDOW_WAYLAND && GST_GL_HAVE_PLATFORM_EGL && defined (HAVE_QT_WAYLAND)
- if (QString::fromUtf8 ("wayland") == app->platformName()){
+ if (QString::fromUtf8 ("wayland") == app->platformName()
+ || QString::fromUtf8 ("wayland-egl") == app->platformName()){
struct wl_display * wayland_display;
QPlatformNativeInterface *native =
QGuiApplication::platformNativeInterface();