From 43827a05f9331068b6c935e5542c5ea91865e62c Mon Sep 17 00:00:00 2001 From: Cassandra Rommel Date: Mon, 2 Oct 2017 12:35:48 -0700 Subject: [PATCH] gl: Use GstGLDisplayEGL directly instead of creating a GstGLDisplayVIVFb subclass This simplifies the code a lot without any functional changes apart from not closing the display connection. Closing the display connection is not safe to do as it is shared between all other code in the same process and no reference counting or anything happens at the platform layer. --- ext/qt/gstqtglutility.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ext/qt/gstqtglutility.cc b/ext/qt/gstqtglutility.cc index ff8d875922..84794e4ee2 100644 --- a/ext/qt/gstqtglutility.cc +++ b/ext/qt/gstqtglutility.cc @@ -169,11 +169,7 @@ gst_qt_get_gl_wrapcontext (GstGLDisplay * display, } #endif #if GST_GL_HAVE_PLATFORM_EGL && defined (HAVE_QT_EGLFS) -#if GST_GL_HAVE_WINDOW_VIV_FB - if (GST_IS_GL_DISPLAY_VIV_FB (display)) { -#else if (GST_IS_GL_DISPLAY_EGL (display)) { -#endif platform = GST_GL_PLATFORM_EGL; } #endif