summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--player/playloop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/player/playloop.c b/player/playloop.c
index 7d3309a583..f8904af028 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -940,8 +940,10 @@ void run_playloop(struct MPContext *mpctx)
}
+ handle_loop_file(mpctx);
+
if (mpctx->stop_play)
- mpctx->sleeptime = 0;
+ return;
handle_osd_redraw(mpctx);
@@ -960,8 +962,6 @@ void run_playloop(struct MPContext *mpctx)
handle_sstep(mpctx);
- handle_loop_file(mpctx);
-
handle_chapter_change(mpctx);
handle_force_window(mpctx, false);