From ed73ba89644fc66264f75e6dfdc4ff7bdf652739 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 3 Mar 2018 00:12:04 +0100 Subject: player: fix strange behavior on edition switching After switching, the playback state was not reset, which could leave it in a strange, pause like state, that could be fixed by e.g. seeking. This seems to be an older regression - it's even in 0.27. --- player/loadfile.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player') diff --git a/player/loadfile.c b/player/loadfile.c index b8fc854cc7..519e841ac7 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -1234,6 +1234,8 @@ static void play_current_file(struct MPContext *mpctx) reopen_file: + reset_playback_state(mpctx); + assert(mpctx->demuxer == NULL); if (process_open_hooks(mpctx, "on_load") < 0) -- cgit v1.2.3