mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
gldisplay: Prefer wayland over X11
As most Wayland compositors supports XWayland, X11 backend get selected. This also realign better GStreamer decision to what happens with GTK and other stack out there.
This commit is contained in:
parent
69934d0756
commit
472b8a3736
1 changed files with 4 additions and 4 deletions
|
@ -292,14 +292,14 @@ gst_gl_display_new (void)
|
|||
return NULL;
|
||||
}
|
||||
#endif
|
||||
#if GST_GL_HAVE_WINDOW_X11
|
||||
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 = GST_GL_DISPLAY (gst_gl_display_wayland_new (NULL));
|
||||
#endif
|
||||
#if GST_GL_HAVE_WINDOW_X11
|
||||
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_VIV_FB
|
||||
if (!display && (!user_choice || g_strstr_len (user_choice, 6, "viv-fb"))) {
|
||||
const gchar *disp_idx_str = NULL;
|
||||
|
|
Loading…
Reference in a new issue