1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-03 13:32:16 +00:00

player: move on_unload hook after frame step pausing

Really minor detail that doesn't really matter. If frame stepping pauses
playback on end (why does this special case even exist), it should
probably be done after on_unload, because all works is supposed to be
finished at that point.
This commit is contained in:
wm4 2020-03-07 12:44:48 +01:00
parent a56d5bdb53
commit 5524ba9d47

View File

@ -1619,13 +1619,13 @@ terminate_playback:
update_core_idle_state(mpctx); update_core_idle_state(mpctx);
process_hooks(mpctx, "on_unload");
if (mpctx->step_frames) { if (mpctx->step_frames) {
opts->pause = 1; opts->pause = 1;
m_config_notify_change_opt_ptr(mpctx->mconfig, &opts->pause); m_config_notify_change_opt_ptr(mpctx->mconfig, &opts->pause);
} }
process_hooks(mpctx, "on_unload");
close_recorder(mpctx); close_recorder(mpctx);
// time to uninit all, except global stuff: // time to uninit all, except global stuff: