mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
gl/wayland: create a dummy display instead of an EGLDisplay
Currently, GstGLWindowWaylandEGL holds the wayland display connection If we create the EGLDisplay at the GstDisplay creation time, then libEGL will internally open another connection to the wayland server. These two display connections are unable to communicate resulting in no window output/display and hangs inside libEGL. Eventually we will move the wl_display from GstGLWindow to GstGLDisplay.
This commit is contained in:
parent
5300e59f09
commit
574b29f2c4
1 changed files with 4 additions and 0 deletions
|
@ -134,6 +134,10 @@ gst_gl_display_new (void)
|
|||
if (!display && (!user_choice || g_strstr_len (user_choice, 3, "x11")))
|
||||
display = GST_GL_DISPLAY (gst_gl_display_x11_new (NULL));
|
||||
#endif
|
||||
#if GST_GL_HAVE_WINDOW_WAYLAND
|
||||
if (!display && (!user_choice || g_strstr_len (user_choice, 7, "wayland")))
|
||||
display = g_object_new (GST_TYPE_GL_DISPLAY, NULL);
|
||||
#endif
|
||||
#if GST_GL_HAVE_PLATFORM_EGL
|
||||
if (!display && (!platform_choice
|
||||
|| g_strstr_len (platform_choice, 3, "egl")))
|
||||
|
|
Loading…
Reference in a new issue