mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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
This commit is contained in:
parent
1172b4df5a
commit
d694184524
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue