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.
This commit is contained in:
wm4 2018-03-03 00:12:04 +01:00 committed by Jan Ekström
parent f706076dd1
commit ed73ba8964
1 changed files with 2 additions and 0 deletions

View File

@ -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)