diff options
Diffstat (limited to 'player')
-rw-r--r-- | player/playloop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/player/playloop.c b/player/playloop.c index 6d680a0780..42f01ce473 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -807,7 +807,8 @@ static void handle_keep_open(struct MPContext *mpctx) { struct MPOpts *opts = mpctx->opts; if (opts->keep_open && mpctx->stop_play == AT_END_OF_FILE && - !playlist_get_next(mpctx->playlist, 1) && opts->loop_times < 0) + (opts->keep_open == 2 || !playlist_get_next(mpctx->playlist, 1)) && + opts->loop_times < 0) { mpctx->stop_play = KEEP_PLAYING; if (mpctx->d_video) { |