From 99c856d3cd2ebad7db58519dc6a8902b1d274512 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 25 Jan 2015 00:52:44 +0100 Subject: vo: fix redraw logic It actually can and does happen that you want to redraw, even if no image was queued yet. Broken by commit 28582322. Fixes #1510. --- video/out/vo.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/video/out/vo.c b/video/out/vo.c index aee2dd8c75..5bb28bef54 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -695,11 +695,9 @@ static void do_redraw(struct vo *vo) in->dropped_frame = false; pthread_mutex_unlock(&in->lock); - if (!img) - return; - if (full_redraw || vo->driver->control(vo, VOCTRL_REDRAW_FRAME, NULL) < 1) { - vo->driver->draw_image(vo, img); + if (img) + vo->driver->draw_image(vo, img); } else { talloc_free(img); } -- cgit v1.2.3