diff options
author | wm4 <wm4@nowhere> | 2015-08-03 20:21:10 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-08-03 20:21:10 +0200 |
commit | c3803e3254dabd6934f2dec7e08c1ea0f5e690aa (patch) | |
tree | 6b48cccfa443048260508c57e86108d41fbe0111 /video/out/vo.c | |
parent | b8591a31e52d42c178a321ace237c175b08631b1 (diff) | |
download | mpv-c3803e3254dabd6934f2dec7e08c1ea0f5e690aa.tar.bz2 mpv-c3803e3254dabd6934f2dec7e08c1ea0f5e690aa.tar.xz |
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.
Diffstat (limited to 'video/out/vo.c')
-rw-r--r-- | video/out/vo.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |