mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 00:02:13 +00:00
wayland/shm: don't crash if initialization failed
This commit is contained in:
parent
34abe7e255
commit
525c7f1add
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user