summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2015-08-07 17:27:48 +0530
committerTim-Philipp Müller <tim@centricular.com>2015-08-31 23:16:07 +0100
commit77f68f6e108c9712792f92d8a9b92e66efc4a4fb (patch)
treef6cb3270eb535767a56e751ad8390cc216911bd8 /ext
parentcf1d116b19802d6bde8ae4589d5dd64ecb924945 (diff)
downloadgstreamer-plugins-bad-77f68f6e108c9712792f92d8a9b92e66efc4a4fb.tar.gz
qmlsink: Ensure that at least one windowing system is available
Otherwise, we'll just crash at runtime because the gl context is NULL https://bugzilla.gnome.org/show_bug.cgi?id=754108
Diffstat (limited to 'ext')
-rw-r--r--ext/qt/qtitem.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/qt/qtitem.cc b/ext/qt/qtitem.cc
index 9e9e28751..6f2200079 100644
--- a/ext/qt/qtitem.cc
+++ b/ext/qt/qtitem.cc
@@ -37,7 +37,7 @@
#include <gst/gl/x11/gstglcontext_glx.h>
#endif
-#if GST_GL_HAVE_WINDOW_WAYLAND
+#if GST_GL_HAVE_WINDOW_WAYLAND && defined (HAVE_QT_WAYLAND)
#include <gst/gl/wayland/gstgldisplay_wayland.h>
#endif
@@ -273,7 +273,7 @@ QtGLVideoItem::onSceneGraphInitialized ()
platform, gl_api);
}
#endif
-#if GST_GL_HAVE_WINDOW_WAYLAND
+#if GST_GL_HAVE_WINDOW_WAYLAND && defined (HAVE_QT_WAYLAND)
if (GST_IS_GL_DISPLAY_WAYLAND (this->priv->display)) {
platform = GST_GL_PLATFORM_EGL;
gl_api = gst_gl_context_get_current_gl_api (platform, NULL, NULL);