mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 12:41:05 +00:00
qmlglsink: also allow wayland-egl as a platform name
This commit is contained in:
parent
a07a9b0bc3
commit
f17e58f888
1 changed files with 4 additions and 1 deletions
|
@ -143,13 +143,16 @@ QtGLVideoItem::QtGLVideoItem()
|
||||||
|
|
||||||
g_mutex_init (&this->priv->lock);
|
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 GST_GL_HAVE_WINDOW_X11 && defined (HAVE_QT_X11)
|
||||||
if (QString::fromUtf8 ("xcb") == app->platformName())
|
if (QString::fromUtf8 ("xcb") == app->platformName())
|
||||||
this->priv->display = (GstGLDisplay *)
|
this->priv->display = (GstGLDisplay *)
|
||||||
gst_gl_display_x11_new_with_display (QX11Info::display ());
|
gst_gl_display_x11_new_with_display (QX11Info::display ());
|
||||||
#endif
|
#endif
|
||||||
#if GST_GL_HAVE_WINDOW_WAYLAND && GST_GL_HAVE_PLATFORM_EGL && defined (HAVE_QT_WAYLAND)
|
#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;
|
struct wl_display * wayland_display;
|
||||||
QPlatformNativeInterface *native =
|
QPlatformNativeInterface *native =
|
||||||
QGuiApplication::platformNativeInterface();
|
QGuiApplication::platformNativeInterface();
|
||||||
|
|
Loading…
Reference in a new issue