diff options
author | Sergey Borovkov <sergey.borovkov@wireload.net> | 2016-12-08 12:37:25 +0300 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2016-12-09 21:44:05 +1100 |
commit | d694184524d569b473279572459ba8b9cbf0cbc9 (patch) | |
tree | 21bc3ab871d8dea482f4e61175e3b67f346b24bc /ext | |
parent | 1172b4df5ad41bd63c593174c2a502774f323a7b (diff) | |
download | gstreamer-plugins-bad-d694184524d569b473279572459ba8b9cbf0cbc9.tar.gz |
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
Diffstat (limited to 'ext')
-rw-r--r-- | ext/qt/gstqtglutility.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/qt/gstqtglutility.cc b/ext/qt/gstqtglutility.cc index 4d6d31864..196d01010 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) |