diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-12-07 12:49:07 +0100 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-12-07 16:22:38 +0100 |
commit | f56fcd71bbf302595afc19b3a8291cd47f485cfc (patch) | |
tree | 7bac0792bb3e12f75db9e6dad3d7dec11aafae71 /player/loadfile.c | |
parent | 3afe76133b184260db726269d6495b5bbf044b4d (diff) | |
download | mpv-f56fcd71bbf302595afc19b3a8291cd47f485cfc.tar.bz2 mpv-f56fcd71bbf302595afc19b3a8291cd47f485cfc.tar.xz |
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.
Diffstat (limited to 'player/loadfile.c')
-rw-r--r-- | player/loadfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |