mirror of
https://github.com/mpv-player/mpv
synced 2025-02-09 08:27:18 +00:00
vo: fix inverted condition
When full_redraw is set, we always need to take the draw_image path. If it's not set, we can try VOCTRL_REDRAW_FRAME (and fallback to draw_image if that fails). Fixes #2184.
This commit is contained in:
parent
b8591a31e5
commit
c3803e3254
@ -762,7 +762,7 @@ static void do_redraw(struct vo *vo)
|
||||
|
||||
if (vo->driver->draw_frame) {
|
||||
vo->driver->draw_frame(vo, frame);
|
||||
} else if ((!full_redraw || vo->driver->control(vo, VOCTRL_REDRAW_FRAME, NULL) < 1)
|
||||
} else if ((full_redraw || vo->driver->control(vo, VOCTRL_REDRAW_FRAME, NULL) < 1)
|
||||
&& frame->current)
|
||||
{
|
||||
vo->driver->draw_image(vo, mp_image_new_ref(frame->current));
|
||||
|
Loading…
Reference in New Issue
Block a user