From 818dde2e025dd21cb5152f4e0756ff577ee49a92 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Fri, 20 Mar 2020 09:14:01 +1100 Subject: [PATCH] qt: reorganize include defines --- ext/qt/gstqtglutility.cc | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/ext/qt/gstqtglutility.cc b/ext/qt/gstqtglutility.cc index 50ff8d4176..2dd6b6ea0d 100644 --- a/ext/qt/gstqtglutility.cc +++ b/ext/qt/gstqtglutility.cc @@ -31,24 +31,21 @@ #include #endif -#if GST_GL_HAVE_WINDOW_WAYLAND && GST_GL_HAVE_PLATFORM_EGL && defined (HAVE_QT_WAYLAND) +#if GST_GL_HAVE_PLATFORM_EGL && (defined (HAVE_QT_WAYLAND) || defined (HAVE_QT_EGLFS) || defined (HAVE_QT_ANDROID)) #include -#include -#include -#include -#endif - -#if GST_GL_HAVE_PLATFORM_EGL && (defined (HAVE_QT_EGLFS) || defined (HAVE_QT_ANDROID)) -#if GST_GL_HAVE_WINDOW_VIV_FB -#include -#include -#else -#include -#include #ifdef HAVE_QT_QPA_HEADER #include #endif +#include +#include #endif + +#if GST_GL_HAVE_WINDOW_WAYLAND && defined (HAVE_QT_WAYLAND) +#include +#endif + +#if GST_GL_HAVE_WINDOW_VIV_FB +#include #endif #if GST_GL_HAVE_WINDOW_WIN32 && GST_GL_HAVE_PLATFORM_WGL && defined (HAVE_QT_WIN32) @@ -315,7 +312,7 @@ qt_opengl_native_context_from_gst_gl_context (GstGLContext * context) return QVariant::fromValue(QGLXNativeContext((GLXContext) handle, xdisplay)); } #endif -#if GST_GL_HAVE_PLATFORM_EGL +#if GST_GL_HAVE_PLATFORM_EGL && (defined (HAVE_QT_WAYLAND) || defined (HAVE_QT_EGLFS) || defined (HAVE_QT_ANDROID)) if (platform == GST_GL_PLATFORM_EGL) { EGLDisplay egl_display = EGL_DEFAULT_DISPLAY; GstGLDisplay *display = gst_gl_context_get_display (context);