diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-09-10 17:52:29 +0200 |
---|---|---|
committer | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-09-10 17:53:43 +0200 |
commit | 6de1cb2d59ad3df9e2edadb8773210241afbfe18 (patch) | |
tree | ff44a39e0744fced3558ef5cb60be48d003456ea /video/out/wayland_common.c | |
parent | fc18c1ba6e91a6a303fad2dd079cdf594fbf8c5f (diff) | |
download | mpv-6de1cb2d59ad3df9e2edadb8773210241afbfe18.tar.bz2 mpv-6de1cb2d59ad3df9e2edadb8773210241afbfe18.tar.xz |
wayland/common: improved error messages
The previous error message were not very usefull.
Also include a hint where to look for solutions.
Diffstat (limited to 'video/out/wayland_common.c')
-rw-r--r-- | video/out/wayland_common.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 1ddec4eeaf..c0e79524f7 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -592,8 +592,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); @@ -647,8 +650,10 @@ static void destroy_window (struct vo_wayland_state *wl) static bool create_cursor (struct vo_wayland_state *wl) { - if (!wl->display.shm) + if (!wl->display.shm) { + MP_ERR(wl->vo, "no shm interface available\n"); return false; + } wl->cursor.surface = wl_compositor_create_surface(wl->display.compositor); @@ -676,7 +681,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->vo, "failed to initialize input\n"); + MP_ERR(wl->vo, "failed to initialize input: check xkbcommon\n"); return false; } @@ -713,7 +718,6 @@ int vo_wayland_init (struct vo *vo) || !create_window(wl) || !create_cursor(wl)) { - MP_ERR(wl->vo, "failed to initialize backend\n"); return false; } |