From c3803e3254dabd6934f2dec7e08c1ea0f5e690aa Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 3 Aug 2015 20:21:10 +0200 Subject: 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. --- video/out/vo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/vo.c b/video/out/vo.c index ca00bb1c49..a0c4768b68 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -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)); -- cgit v1.2.3