diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2014-01-08 22:15:40 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-15 20:51:37 +0100 |
commit | 54fd5d09790c655e5c180658ae00bcb5250c789a (patch) | |
tree | dd2384e913e41cc0805ceb170bfdc9dfd0841667 /video | |
parent | d141d281ca3988c63d0c7a573696626a83f1565e (diff) | |
download | mpv-54fd5d09790c655e5c180658ae00bcb5250c789a.tar.bz2 mpv-54fd5d09790c655e5c180658ae00bcb5250c789a.tar.xz |
wayland/shm: don't crash if initialization failed
Diffstat (limited to 'video')
-rw-r--r-- | video/out/vo_wayland.c | 4 |
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; |