summaryrefslogtreecommitdiffstats
path: root/player/playloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/playloop.c')
-rw-r--r--player/playloop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/player/playloop.c b/player/playloop.c
index fcbb86ac04..d6509f8c98 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -978,6 +978,9 @@ void run_playloop(struct MPContext *mpctx)
handle_sstep(mpctx);
+ if (mpctx->stop_play == AT_END_OF_FILE && mpctx->seek.type)
+ mpctx->stop_play = KEEP_PLAYING;
+
if (mpctx->stop_play)
return;