1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 01:22:30 +00:00

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.
This commit is contained in:
wm4 2012-11-14 13:28:16 +01:00
parent b60483a144
commit 8827a4090e

View File

@ -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})),