summaryrefslogtreecommitdiffstats
path: root/video/out/vo_wayland.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo_wayland.c')
-rw-r--r--video/out/vo_wayland.c4
1 files changed, 1 insertions, 3 deletions
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;