diff --git a/video/out/vo_wlshm.c b/video/out/vo_wlshm.c index 2ccdd7d681..1e5e009bc7 100644 --- a/video/out/vo_wlshm.c +++ b/video/out/vo_wlshm.c @@ -184,6 +184,10 @@ static int resize(struct vo *vo) struct vo_wayland_state *wl = vo->wl; const int32_t width = mp_rect_w(wl->geometry); const int32_t height = mp_rect_h(wl->geometry); + + if (width == 0 || height == 0) + return 1; + struct buffer *buf; vo_wayland_set_opaque_region(wl, false);