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:
1 parent
0e69c1c5af
commit
99c856d3cd
1 file changed
+2
-4
+2
-4
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user