mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
qmlglsink: Fix build error when don't have QPA installed.
Check header file existance and wrap the header file include in the necessary #ifdef to avoid build error. https://bugzilla.gnome.org/show_bug.cgi?id=767553
This commit is contained in:
parent
3be4b85a43
commit
04fd6dc6c4
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,6 @@
|
|||
#include <QtGui/QGuiApplication>
|
||||
#include <QtQuick/QQuickWindow>
|
||||
#include <QtQuick/QSGSimpleTextureNode>
|
||||
#include <qpa/qplatformnativeinterface.h>
|
||||
|
||||
#if GST_GL_HAVE_WINDOW_X11 && GST_GL_HAVE_PLATFORM_GLX && defined (HAVE_QT_X11)
|
||||
#include <QX11Info>
|
||||
|
@ -41,6 +40,7 @@
|
|||
#endif
|
||||
|
||||
#if GST_GL_HAVE_WINDOW_WAYLAND && GST_GL_HAVE_PLATFORM_EGL && defined (HAVE_QT_WAYLAND)
|
||||
#include <qpa/qplatformnativeinterface.h>
|
||||
#include <gst/gl/wayland/gstgldisplay_wayland.h>
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue