From a937ba203dfad2b3d0a5dd349015cc608c8d6dd4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 29 Nov 2014 00:24:51 +0100 Subject: 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. --- player/loadfile.c | 1 - player/playloop.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/player/loadfile.c b/player/loadfile.c index 3c001ddeaa..bb5a27af07 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -903,7 +903,6 @@ static void play_current_file(struct MPContext *mpctx) mpctx->paused = false; mpctx->paused_for_cache = false; mpctx->playing_msg_shown = false; - mpctx->step_frames = 0; mpctx->backstep_active = false; mpctx->audio_delay = 0; mpctx->max_frames = -1; diff --git a/player/playloop.c b/player/playloop.c index 190bc3f98c..21c8eff50a 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 -- cgit v1.2.3