From 8827a4090eb743ffbfeb8e1f1b0480febf48d9fb Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 14 Nov 2012 13:28:16 +0100 Subject: options: make --loop always per-file In this example, only f1.mkv was looped: mpv f1.mkv f2.mkv --loop=2 This is because the playloop actually changes the global option value, assuming it would be reset when going to the next file. When mpv was changed to not reset options between files, this assumption was broken. --- core/cfg-mplayer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/cfg-mplayer.h') diff --git a/core/cfg-mplayer.h b/core/cfg-mplayer.h index 20de5f3ebb..1a666c6666 100644 --- a/core/cfg-mplayer.h +++ b/core/cfg-mplayer.h @@ -674,7 +674,7 @@ const m_option_t mplayer_opts[]={ {"leak-report", "", CONF_TYPE_PRINT, 0, 0, 0, (void*)1}, OPT_FLAG_CONSTANTS("no-loop", loop_times, 0, 0, -1), - OPT_CHOICE_OR_INT("loop", loop_times, 0, 1, 10000, + OPT_CHOICE_OR_INT("loop", loop_times, M_OPT_LOCAL, 1, 10000, ({"no", -1}, {"0", -1}, {"inf", 0})), -- cgit v1.2.3