1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00

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.
This commit is contained in:
wm4 2014-09-21 10:06:06 +02:00
parent 1cf229f462
commit a4241f9de6

View File

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