From 5524ba9d4738d73ce4e0130b62b931ccd09051e4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 7 Mar 2020 12:44:48 +0100 Subject: 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. --- player/loadfile.c | 4 ++-- 1 file 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: -- cgit v1.2.3