summaryrefslogtreecommitdiffstats
path: root/player/loadfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/loadfile.c')
-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: