summaryrefslogtreecommitdiffstats
path: root/core/cfg-mplayer.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-14 13:28:16 +0100
committerwm4 <wm4@nowhere>2012-11-14 13:28:16 +0100
commit8827a4090eb743ffbfeb8e1f1b0480febf48d9fb (patch)
tree72d2332141649226dcd6cdd262c2903fef438117 /core/cfg-mplayer.h
parentb60483a144e50177a99a1b34cf4e84a6787b6166 (diff)
downloadmpv-8827a4090eb743ffbfeb8e1f1b0480febf48d9fb.tar.bz2
mpv-8827a4090eb743ffbfeb8e1f1b0480febf48d9fb.tar.xz
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.
Diffstat (limited to 'core/cfg-mplayer.h')
-rw-r--r--core/cfg-mplayer.h2
1 files changed, 1 insertions, 1 deletions
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})),