summaryrefslogtreecommitdiffstats
path: root/player/loadfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/loadfile.c')
-rw-r--r--player/loadfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index 1aa4c4a49d..e0a796d9fc 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -1274,14 +1274,15 @@ reopen_file:
playback_start = mp_time_sec();
mpctx->error_playing = 0;
+ mpctx->in_playloop = true;
while (!mpctx->stop_play)
run_playloop(mpctx);
+ mpctx->in_playloop = false;
MP_VERBOSE(mpctx, "EOF code: %d \n", mpctx->stop_play);
terminate_playback:
- mpctx->playback_active = false;
update_core_idle_state(mpctx);
process_unload_hooks(mpctx);