summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2013-09-10 17:52:29 +0200
committerAlexander Preisinger <alexander.preisinger@gmail.com>2013-09-10 18:11:58 +0200
commit3ed671e369f2a081b654a749b65748d12b0652f8 (patch)
tree1b021ed32e06fd734e88e5638fc80fad1ed32a22
parent3959702a1d9bb85842996f57ad1badf8a6fa8ce2 (diff)
downloadmpv-3ed671e369f2a081b654a749b65748d12b0652f8.tar.bz2
mpv-3ed671e369f2a081b654a749b65748d12b0652f8.tar.xz
wayland/common: improved error messages
The previous error message were not very usefull. Also include a hint where to look for solutions. Conflicts: video/out/wayland_common.c
-rw-r--r--video/out/wayland_common.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 535c662730..ad83b67d74 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -569,8 +569,11 @@ static bool create_display (struct vo_wayland_state *wl)
{
wl->display.display = wl_display_connect(NULL);
- if (!wl->display.display)
+ if (!wl->display.display) {
+ MP_ERR(wl->vo, "failed to connect to a wayland server: "
+ "check if a wayland compositor is running\n");
return false;
+ }
wl_list_init(&wl->display.output_list);
wl->display.registry = wl_display_get_registry(wl->display.display);
@@ -644,7 +647,7 @@ static bool create_input (struct vo_wayland_state *wl)
wl->input.xkb.context = xkb_context_new(0);
if (!wl->input.xkb.context) {
- MP_ERR(wl, "failed to initialize input\n");
+ MP_ERR(wl->vo, "failed to initialize input: check xkbcommon\n");
return false;
}
@@ -680,7 +683,6 @@ int vo_wayland_init (struct vo *vo)
|| !create_window(wl)
|| !create_cursor(wl))
{
- MP_ERR(wl, "failed to initialize backend\n");
return false;
}