From f56fcd71bbf302595afc19b3a8291cd47f485cfc Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 7 Dec 2014 12:49:07 +0100 Subject: options: add a 'once' idle mode This allows to make mpv wait for file open events at start but close after it is done playing the first playlist. --- player/loadfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/loadfile.c') diff --git a/player/loadfile.c b/player/loadfile.c index 5b04451667..d1b77743e6 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -1313,7 +1313,7 @@ void mp_play_files(struct MPContext *mpctx) mpctx->playlist->current_was_replaced = false; mpctx->stop_play = 0; - if (!mpctx->playlist->current && !mpctx->opts->player_idle_mode) + if (!mpctx->playlist->current && mpctx->opts->player_idle_mode < 2) break; } } -- cgit v1.2.3