mirror of https://github.com/mpv-player/mpv
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:
parent
0e69c1c5af
commit
99c856d3cd
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue