diff options
Diffstat (limited to 'video/out/vo_wayland.c')
-rw-r--r-- | video/out/vo_wayland.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/video/out/vo_wayland.c b/video/out/vo_wayland.c index be51ec55de..2e98e670cd 100644 --- a/video/out/vo_wayland.c +++ b/video/out/vo_wayland.c @@ -474,9 +474,6 @@ static struct buffer * buffer_pool_get_no(struct buffer_pool *pool, uint32_t no) static bool redraw_frame(struct priv *p) { - if (!p->original_image) - return false; - draw_image(p->vo, p->original_image); return true; } @@ -670,6 +667,12 @@ static void draw_image(struct vo *vo, mp_image_t *mpi) buffer_resize(&p->video_bufpool, buf, p->dst_w, p->dst_h); } + if (!mpi) { + // TODO: clear screen + draw_osd(vo); + return; + } + struct mp_image src = *mpi; struct mp_rect src_rc = p->src; src_rc.x0 = MP_ALIGN_DOWN(src_rc.x0, src.fmt.align_x); |