From 382bafcb1349855c2871bbe0a813f8493e1bd9f7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 18 Apr 2016 21:32:58 +0200 Subject: player: loop on end of file if ab-loop-b is unset Possibly slightly more useful/intuitive. --- player/playloop.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'player/playloop.c') 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; -- cgit v1.2.3