From a4241f9de68860d5143d9c21b8c26bb2c6500663 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 21 Sep 2014 10:06:06 +0200 Subject: video: fix redrawing when pausing after framedrop When pausing after a frame was just dropped, we're logically at the dropped frame, and thus should redraw the dropped frame. This was implemented, but didn't work after unpausing for the second time, because of a minor logic bug. --- video/out/vo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') diff --git a/video/out/vo.c b/video/out/vo.c index 774d2e2bd4..9d005647e2 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -703,7 +703,7 @@ void vo_set_paused(struct vo *vo, bool paused) struct vo_internal *in = vo->in; pthread_mutex_lock(&in->lock); if (in->paused != paused) { - in->paused = true; + in->paused = paused; if (in->paused && in->dropped_frame) in->request_redraw = true; } -- cgit v1.2.3