summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2014-01-08 22:15:40 +0100
committerAlexander Preisinger <alexander.preisinger@gmail.com>2014-01-08 22:15:40 +0100
commit525c7f1addacc684b66e9d5f73890347e0879261 (patch)
tree9578002d8433f462ca4c6f1e9228063945fe4106 /video
parent34abe7e2555d1478ea94a2e762a6e7820dd59b28 (diff)
downloadmpv-525c7f1addacc684b66e9d5f73890347e0879261.tar.bz2
mpv-525c7f1addacc684b66e9d5f73890347e0879261.tar.xz
wayland/shm: don't crash if initialization failed
Diffstat (limited to 'video')
-rw-r--r--video/out/vo_wayland.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/video/out/vo_wayland.c b/video/out/vo_wayland.c
index 48953ef1a6..1d9025b245 100644
--- a/video/out/vo_wayland.c
+++ b/video/out/vo_wayland.c
@@ -663,10 +663,8 @@ static int preinit(struct vo *vo)
{
struct priv *p = vo->priv;
- if (!vo_wayland_init(vo)) {
- MP_ERR(p->wl, "could not initalise backend\n");
+ if (!vo_wayland_init(vo))
return -1;
- }
p->vo = vo;
p->wl = vo->wayland;