From 92c89e2a31b7cf0b3d1bf2af6a959c638b4ae947 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Mon, 27 Nov 2017 14:44:58 +1100 Subject: [PATCH] gl/caopengllayer: use public GstGLContext instead of Cocoa-specific one Allows keeping the GstGLCAOpenGLLayer public but not the winsys-specific context/display/window. --- ext/qt/gstqtglutility.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ext/qt/gstqtglutility.cc b/ext/qt/gstqtglutility.cc index ff8d875922..4a88bb6b7c 100644 --- a/ext/qt/gstqtglutility.cc +++ b/ext/qt/gstqtglutility.cc @@ -51,10 +51,6 @@ #include #endif -#if GST_GL_HAVE_WINDOW_COCOA && GST_GL_HAVE_PLATFORM_CGL && defined (HAVE_QT_MAC) -#include -#endif - #define GST_CAT_DEFAULT qt_gl_utils_debug GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT); @@ -126,7 +122,7 @@ gst_qt_get_gl_display () #if GST_GL_HAVE_WINDOW_COCOA && GST_GL_HAVE_PLATFORM_CGL && defined (HAVE_QT_MAC) if (QString::fromUtf8 ("cocoa") == app->platformName()) - display = (GstGLDisplay *) gst_gl_display_cocoa_new (); + display = (GstGLDisplay *) gst_gl_display_new (); #endif #if GST_GL_HAVE_WINDOW_EAGL && GST_GL_HAVE_PLATFORM_EAGL && defined (HAVE_QT_IOS) if (QString::fromUtf8 ("ios") == app->platformName())