summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2015-07-10 14:01:43 +0200
committerEdward Hervey <bilboed@bilboed.com>2015-07-10 14:01:59 +0200
commit7cb734b1cd2809a301c5a58a664d61ab4347d0a6 (patch)
tree6c92cd885c12eccb9cb062bd2cebd4211bc6fce4 /ext
parenta6507de48e1e42127e4dc3e40bf01561eb87c4df (diff)
downloadgstreamer-plugins-bad-7cb734b1cd2809a301c5a58a664d61ab4347d0a6.tar.gz
configure/qt: Fix build without Qt5X11Extras
Diffstat (limited to 'ext')
-rw-r--r--ext/qt/qtitem.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/qt/qtitem.cc b/ext/qt/qtitem.cc
index 5a7ac2e69..fab2c5dcc 100644
--- a/ext/qt/qtitem.cc
+++ b/ext/qt/qtitem.cc
@@ -31,7 +31,7 @@
#include "qtitem.h"
#include "gstqsgtexture.h"
-#if GST_GL_HAVE_WINDOW_X11
+#if GST_GL_HAVE_WINDOW_X11 && defined (HAVE_QT_X11)
#include <QX11Info>
#include <gst/gl/x11/gstgldisplay_x11.h>
#include <gst/gl/x11/gstglcontext_glx.h>
@@ -111,7 +111,7 @@ QtGLVideoItem::QtGLVideoItem()
g_mutex_init (&this->priv->lock);
-#if GST_GL_HAVE_WINDOW_X11
+#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 ());
@@ -259,7 +259,7 @@ QtGLVideoItem::onSceneGraphInitialized ()
return;
}
-#if GST_GL_HAVE_WINDOW_X11
+#if GST_GL_HAVE_WINDOW_X11 && defined (HAVE_QT_X11)
if (GST_IS_GL_DISPLAY_X11 (this->priv->display)) {
platform = GST_GL_PLATFORM_GLX;
gl_api = gst_gl_context_get_current_gl_api (NULL, NULL);