diff options
author | wm4 <wm4@nowhere> | 2015-02-12 22:41:45 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-12 22:41:45 +0100 |
commit | aee0978d50e21d8f114382fdb9c014c029f71a04 (patch) | |
tree | 5f53913088d11b7ae76da58f05a7845ed526485e /options/options.c | |
parent | c59a4f12db96784b054f28d52eaa33cb7553d630 (diff) | |
download | mpv-aee0978d50e21d8f114382fdb9c014c029f71a04.tar.bz2 mpv-aee0978d50e21d8f114382fdb9c014c029f71a04.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.
Diffstat (limited to 'options/options.c')
-rw-r--r-- | options/options.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/options/options.c b/options/options.c index 55b444a983..a0674b6185 100644 --- a/options/options.c +++ b/options/options.c @@ -500,9 +500,10 @@ const m_option_t mp_opts[] = { OPT_FLAG("stop-playback-on-init-failure", stop_playback_on_init_failure, 0), - OPT_CHOICE_OR_INT("loop", loop_times, M_OPT_GLOBAL, 2, 10000, - ({"no", -1}, {"1", -1}, - {"inf", 0})), + OPT_CHOICE_OR_INT("loop", loop_times, M_OPT_GLOBAL, 1, 10000, + ({"no", 1}, + {"inf", -1}, + {"force", -2})), OPT_CHOICE_OR_INT("loop-file", loop_file, M_OPT_OPTIONAL_PARAM, 0, 10000, ({"yes", -1}, {"", -1}, {"no", 0}, // compat {"inf", -1})), @@ -712,7 +713,7 @@ const struct MPOpts mp_default_opts = { .lua_ytdl_format = NULL, #endif .auto_load_scripts = 1, - .loop_times = -1, + .loop_times = 1, .ordered_chapters = 1, .chapter_merge_threshold = 100, .chapter_seek_threshold = 5.0, |