From f17e58f888425b69346c666fd080ce8b93399621 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 16 Jun 2016 00:44:16 +1000 Subject: [PATCH] qmlglsink: also allow wayland-egl as a platform name --- ext/qt/qtitem.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/qt/qtitem.cc b/ext/qt/qtitem.cc index 2df087e7d7..8a73ed4261 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();