summaryrefslogtreecommitdiffstats
path: root/video/out/vo.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo.c')
-rw-r--r--video/out/vo.c6
1 files 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);
}