summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-03-07 12:44:48 +0100
committerwm4 <wm4@nowhere>2020-03-07 12:47:46 +0100
commit5524ba9d4738d73ce4e0130b62b931ccd09051e4 (patch)
treefdedcad25bc28490d2dbb4247d9aca77026c5d8d
parenta56d5bdb53cc0f0a7c2a6bb91ca3240054e43db2 (diff)
downloadmpv-5524ba9d4738d73ce4e0130b62b931ccd09051e4.tar.bz2
mpv-5524ba9d4738d73ce4e0130b62b931ccd09051e4.tar.xz
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.
-rw-r--r--player/loadfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index 9eb58c0f4d..2297aff18e 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -1619,13 +1619,13 @@ terminate_playback:
update_core_idle_state(mpctx);
- process_hooks(mpctx, "on_unload");
-
if (mpctx->step_frames) {
opts->pause = 1;
m_config_notify_change_opt_ptr(mpctx->mconfig, &opts->pause);
}
+ process_hooks(mpctx, "on_unload");
+
close_recorder(mpctx);
// time to uninit all, except global stuff: