diff options
author | wm4 <wm4@nowhere> | 2015-02-12 22:41:45 +0100 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-02-16 18:09:12 +0900 |
commit | e4eb9c5469da74ae48024bd2e6a80cee9e8edac1 (patch) | |
tree | 1b8131e7b6467e934e01165d81781df22b655674 /player/playloop.c | |
parent | 43879197531d51634983c29a487df242c211d5b5 (diff) | |
download | mpv-e4eb9c5469da74ae48024bd2e6a80cee9e8edac1.tar.bz2 mpv-e4eb9c5469da74ae48024bd2e6a80cee9e8edac1.tar.xz |
player: add a --loop=force mode
Requested. See manpage additions.
This also makes the magical loop_times constants slightly saner, but
shouldn't change the semantics of any existing --loop option values.
(cherry picked from commit aee0978d50e21d8f114382fdb9c014c029f71a04)
Diffstat (limited to 'player/playloop.c')
-rw-r--r-- | player/playloop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/playloop.c b/player/playloop.c index b2c82f036a..defc6ba6f3 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -813,7 +813,7 @@ static void handle_keep_open(struct MPContext *mpctx) struct MPOpts *opts = mpctx->opts; if (opts->keep_open && mpctx->stop_play == AT_END_OF_FILE && (opts->keep_open == 2 || !playlist_get_next(mpctx->playlist, 1)) && - opts->loop_times < 0) + opts->loop_times == 1) { mpctx->stop_play = KEEP_PLAYING; if (mpctx->d_video) { |