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.
This commit is contained in:
wm4 2015-01-25 00:52:44 +01:00
parent 0e69c1c5af
commit 99c856d3cd
1 changed files with 2 additions and 4 deletions

View File

@ -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);
}