wayland/shm: don't crash if initialization failed
This commit is contained in:
1 parent
d141d281ca
commit
54fd5d0979
1 file changed
+1
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user