1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-27 10:50:53 +00:00

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.
This commit is contained in:
wm4 2014-11-29 00:24:51 +01:00
parent 9e10f8ccbb
commit a937ba203d
2 changed files with 1 additions and 1 deletions

View File

@ -903,7 +903,6 @@ static void play_current_file(struct MPContext *mpctx)
mpctx->paused = false; mpctx->paused = false;
mpctx->paused_for_cache = false; mpctx->paused_for_cache = false;
mpctx->playing_msg_shown = false; mpctx->playing_msg_shown = false;
mpctx->step_frames = 0;
mpctx->backstep_active = false; mpctx->backstep_active = false;
mpctx->audio_delay = 0; mpctx->audio_delay = 0;
mpctx->max_frames = -1; mpctx->max_frames = -1;

View File

@ -154,6 +154,7 @@ void reset_playback_state(struct MPContext *mpctx)
mpctx->playback_pts = MP_NOPTS_VALUE; mpctx->playback_pts = MP_NOPTS_VALUE;
mpctx->last_seek_pts = MP_NOPTS_VALUE; mpctx->last_seek_pts = MP_NOPTS_VALUE;
mpctx->cache_wait_time = 0; mpctx->cache_wait_time = 0;
mpctx->step_frames = 0;
mpctx->restart_complete = false; mpctx->restart_complete = false;
#if HAVE_ENCODING #if HAVE_ENCODING