summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--player/loadfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index d98f8f942a..4a7a71f421 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -1200,6 +1200,9 @@ reopen_file:
MP_VERBOSE(mpctx, "Starting playback...\n");
+ mpctx->playback_initialized = true;
+ mp_notify(mpctx, MPV_EVENT_FILE_LOADED, NULL);
+
if (mpctx->max_frames == 0) {
if (!mpctx->stop_play)
mpctx->stop_play = PT_NEXT_ENTRY;
@@ -1225,9 +1228,6 @@ reopen_file:
if (mpctx->opts->pause)
pause_player(mpctx);
- mpctx->playback_initialized = true;
- mp_notify(mpctx, MPV_EVENT_FILE_LOADED, NULL);
-
playback_start = mp_time_sec();
mpctx->error_playing = 0;
while (!mpctx->stop_play)