gstreamer destory EGLDisplay when application is using it
we have a QML player application QMLTest.tgz
when stop the video player ,screen will freeze(with wayland desktop)
this application has two issue:
- gstreamer destory the qt's EGLDisplay
- the the wayland server will not send ping pong ,when switch to the background and swich back
with the first issue:
diff --git a/gst-libs/gst/gl/egl/gstgldisplay_egl.c b/gst-libs/gst/gl/egl/gstgldisplay_egl.c
index 8eb53a2d5..ad6beae88 100644
--- a/gst-libs/gst/gl/egl/gstgldisplay_egl.c
+++ b/gst-libs/gst/gl/egl/gstgldisplay_egl.c
@@ -298,7 +298,7 @@ gst_gl_display_egl_from_gl_display (GstGLDisplay * display)
ret->display =
gst_gl_display_egl_get_from_native (display_type, native_display);
-
+ ret->foreign_display = true;
if (!ret->display) {
GST_WARNING_OBJECT (ret, "failed to get EGLDisplay from native display");
gst_object_unref (ret);
1 i use this to fix the issue ,why we cancel this fix ? : dylanmccall/gst-plugins-base@f9135c64 2 how can i use this function gst_gl_display_egl_set_foreign_display?