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:
Tim-Philipp Müller 2016-07-18 17:43:23 +01:00
parent 41644cfa70
commit c593e0a17f
2 changed files with 7 additions and 2 deletions

View file

@ -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;
}

View file

@ -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__ */