From 525c7f1addacc684b66e9d5f73890347e0879261 Mon Sep 17 00:00:00 2001 From: Alexander Preisinger Date: Wed, 8 Jan 2014 22:15:40 +0100 Subject: wayland/shm: don't crash if initialization failed --- video/out/vo_wayland.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'video') 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; -- cgit v1.2.3