summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-21 10:06:06 +0200
committerwm4 <wm4@nowhere>2014-09-21 10:06:06 +0200
commita4241f9de68860d5143d9c21b8c26bb2c6500663 (patch)
tree2551a8a24cdddaf3e2c4d8599023ca271411e023 /video
parent1cf229f4623ec302afb71ab93f44f273ffb1a515 (diff)
downloadmpv-a4241f9de68860d5143d9c21b8c26bb2c6500663.tar.bz2
mpv-a4241f9de68860d5143d9c21b8c26bb2c6500663.tar.xz
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.
Diffstat (limited to 'video')
-rw-r--r--video/out/vo.c2
1 files changed, 1 insertions, 1 deletions
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;
}