summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/vo_wayland.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_wayland.c b/video/out/vo_wayland.c
index ab4ed8c9c3..40f06aa7eb 100644
--- a/video/out/vo_wayland.c
+++ b/video/out/vo_wayland.c
@@ -268,7 +268,7 @@ static bool resize(struct priv *p)
{
struct vo_wayland_state *wl = p->wl;
- if (SHM_BUFFER_IS_BUSY(p->video_bufpool.back_buffer))
+ if (!p->video_bufpool.back_buffer || SHM_BUFFER_IS_BUSY(p->video_bufpool.back_buffer))
return false; // skip resizing if we can't garantuee pixel perfectness!
int32_t x = wl->window.sh_x;