summaryrefslogtreecommitdiffstats
path: root/player/playloop.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-29 00:24:51 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-01-25 17:00:11 +0900
commit0fcb96139d2b767d22547c878aa21c80197dd7f5 (patch)
treedaa9cfce0481dbafdc9759c752326fd5a473a6af /player/playloop.c
parent5f6b5feac6d55e69c01858b314da6184c5f547c5 (diff)
downloadmpv-0fcb96139d2b767d22547c878aa21c80197dd7f5.tar.bz2
mpv-0fcb96139d2b767d22547c878aa21c80197dd7f5.tar.xz
player: reset frame step counter on seeks
I suppose this wasn't done in order to keep the frame step counter active even in the next file, but actually it was reset anyway.
Diffstat (limited to 'player/playloop.c')
-rw-r--r--player/playloop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/playloop.c b/player/playloop.c
index 678ee6986d..5d60088f7d 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -154,6 +154,7 @@ void reset_playback_state(struct MPContext *mpctx)
mpctx->playback_pts = MP_NOPTS_VALUE;
mpctx->last_seek_pts = MP_NOPTS_VALUE;
mpctx->cache_wait_time = 0;
+ mpctx->step_frames = 0;
mpctx->restart_complete = false;
#if HAVE_ENCODING