From 04fd6dc6c44e7b9227b5ed71ac93a06e0eaf8846 Mon Sep 17 00:00:00 2001 From: Haihua Hu Date: Mon, 27 Jun 2016 18:15:08 +0800 Subject: [PATCH] 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 --- ext/qt/qtitem.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/qt/qtitem.cc b/ext/qt/qtitem.cc index 67820b9..c306c6d 100644 --- a/ext/qt/qtitem.cc +++ b/ext/qt/qtitem.cc @@ -32,7 +32,6 @@ #include #include #include -#include #if GST_GL_HAVE_WINDOW_X11 && GST_GL_HAVE_PLATFORM_GLX && defined (HAVE_QT_X11) #include @@ -41,6 +40,7 @@ #endif #if GST_GL_HAVE_WINDOW_WAYLAND && GST_GL_HAVE_PLATFORM_EGL && defined (HAVE_QT_WAYLAND) +#include #include #endif -- 2.7.4