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:
wm4 2015-08-03 20:21:10 +02:00
parent b8591a31e5
commit c3803e3254
1 changed files with 1 additions and 1 deletions

View File

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