mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
gl: wayland: improve debug message when connecting to display
And another copy'n'paste-o. https://bugzilla.gnome.org/show_bug.cgi?id=768929
This commit is contained in:
parent
41644cfa70
commit
c593e0a17f
2 changed files with 7 additions and 2 deletions
|
@ -117,7 +117,12 @@ gst_gl_display_wayland_new (const gchar * name)
|
|||
ret->display = wl_display_connect (name);
|
||||
|
||||
if (!ret->display) {
|
||||
GST_ERROR ("Failed to open X11 display connection with name, \'%s\'", name);
|
||||
if (name != NULL) {
|
||||
GST_ERROR ("Failed to open Wayland display connection with name \'%s\'",
|
||||
name);
|
||||
} else {
|
||||
GST_ERROR ("Failed to open Wayland display connection.");
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -103,4 +103,4 @@ void gst_gl_window_wayland_egl_create_window (GstGLWindowWaylandEGL * window_egl
|
|||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_GL_WINDOW_X11_H__ */
|
||||
#endif /* __GST_GL_WINDOW_WAYLAND_EGL_H__ */
|
||||
|
|
Loading…
Reference in a new issue