diff options
author | Matthew Waters <matthew@centricular.com> | 2016-06-16 00:44:16 +1000 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2016-06-16 01:49:16 +1000 |
commit | ef508b8461572a9920d17f69738afaf256e13037 (patch) | |
tree | 6210924c02429b71c12bed24d672529a8932c57c /ext | |
parent | 39034063045af3bb91775fcf3ea0bf35fe6de68f (diff) | |
download | gstreamer-plugins-bad-ef508b8461572a9920d17f69738afaf256e13037.tar.gz |
qmlglsink: also allow wayland-egl as a platform name
Diffstat (limited to 'ext')
-rw-r--r-- | ext/qt/qtitem.cc | 5 |
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(); |