From: Sergey Borovkov Date: Thu, 8 Dec 2016 09:37:25 +0000 (+0300) Subject: qml: Fix egl being deinitialized on display cleanup X-Git-Tag: 1.19.3~509^2~1695^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1f4c207a8e6d8346017e071e5014ec50e1d36fe;p=platform%2Fupstream%2Fgstreamer.git qml: Fix egl being deinitialized on display cleanup Use the with_egl_display() variant in order to not destroy the EGLDisplay on destruction. https://bugzilla.gnome.org/show_bug.cgi?id=775793 --- diff --git a/ext/qt/gstqtglutility.cc b/ext/qt/gstqtglutility.cc index 4d6d318..196d010 100644 --- a/ext/qt/gstqtglutility.cc +++ b/ext/qt/gstqtglutility.cc @@ -83,10 +83,10 @@ gst_qt_get_gl_display () #endif #if GST_GL_HAVE_PLATFORM_EGL && GST_GL_HAVE_WINDOW_ANDROID if (QString::fromUtf8 ("android") == app->platformName()) - display = (GstGLDisplay *) gst_gl_display_egl_new (); + display = (GstGLDisplay *) gst_gl_display_egl_new_with_egl_display (eglGetDisplay(EGL_DEFAULT_DISPLAY)); #elif GST_GL_HAVE_PLATFORM_EGL && defined (HAVE_QT_EGLFS) if (QString::fromUtf8("eglfs") == app->platformName()) - display = (GstGLDisplay *) gst_gl_display_egl_new (); + display = (GstGLDisplay *) gst_gl_display_egl_new_with_egl_display (eglGetDisplay(EGL_DEFAULT_DISPLAY)); #endif #if GST_GL_HAVE_WINDOW_COCOA && GST_GL_HAVE_PLATFORM_COCOA && defined (HAVE_QT_MAC)