1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 08:12:17 +00:00

wayland/shm: don't crash if initialization failed

This commit is contained in:
Alexander Preisinger 2014-01-08 22:15:40 +01:00
parent 34abe7e255
commit 525c7f1add

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;