From aee0978d50e21d8f114382fdb9c014c029f71a04 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 12 Feb 2015 22:41:45 +0100 Subject: 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. --- options/options.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'options/options.c') 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, -- cgit v1.2.3