mirror of
https://github.com/mpv-player/mpv
synced 2025-02-15 03:27:35 +00:00
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:
parent
f706076dd1
commit
ed73ba8964
@ -1234,6 +1234,8 @@ static void play_current_file(struct MPContext *mpctx)
|
|||||||
|
|
||||||
reopen_file:
|
reopen_file:
|
||||||
|
|
||||||
|
reset_playback_state(mpctx);
|
||||||
|
|
||||||
assert(mpctx->demuxer == NULL);
|
assert(mpctx->demuxer == NULL);
|
||||||
|
|
||||||
if (process_open_hooks(mpctx, "on_load") < 0)
|
if (process_open_hooks(mpctx, "on_load") < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user