From c593e0a17ff8a53e41c77fc7c33c0991f7c3399f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 18 Jul 2016 17:43:23 +0100 Subject: [PATCH] gl: wayland: improve debug message when connecting to display And another copy'n'paste-o. https://bugzilla.gnome.org/show_bug.cgi?id=768929 --- gst-libs/gst/gl/wayland/gstgldisplay_wayland.c | 7 ++++++- gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.h | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/gl/wayland/gstgldisplay_wayland.c b/gst-libs/gst/gl/wayland/gstgldisplay_wayland.c index c5c509445d..6654280611 100644 --- a/gst-libs/gst/gl/wayland/gstgldisplay_wayland.c +++ b/gst-libs/gst/gl/wayland/gstgldisplay_wayland.c @@ -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; } diff --git a/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.h b/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.h index e0166dabb7..a88955ff22 100644 --- a/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.h +++ b/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.h @@ -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__ */