summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2014-01-08 22:15:40 +0100
committerwm4 <wm4@nowhere>2014-01-15 20:51:37 +0100
commit54fd5d09790c655e5c180658ae00bcb5250c789a (patch)
treedd2384e913e41cc0805ceb170bfdc9dfd0841667
parentd141d281ca3988c63d0c7a573696626a83f1565e (diff)
downloadmpv-54fd5d09790c655e5c180658ae00bcb5250c789a.tar.bz2
mpv-54fd5d09790c655e5c180658ae00bcb5250c789a.tar.xz
wayland/shm: don't crash if initialization failed
-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;