wayland/shm: don't crash if initialization failed

This commit is contained in:
Alexander Preisinger authored and wm4 committed 2014-01-15 20:51:37 +01:00
1 parent d141d281ca
commit 54fd5d0979
1 file changed
+1 -3
+1 -3
View File
@@ -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;