diff options
author | wm4 <wm4@nowhere> | 2020-05-06 15:27:00 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-05-06 15:27:25 +0200 |
commit | f77a4450b4f1c665f92e2f9917482a97650437c6 (patch) | |
tree | 71f5b213bad6076f46cf31c81a79e75314b80f29 | |
parent | 12451ac7ebfd6dd90e1425f065785dc2654fcf3c (diff) | |
download | mpv-f77a4450b4f1c665f92e2f9917482a97650437c6.tar.bz2 mpv-f77a4450b4f1c665f92e2f9917482a97650437c6.tar.xz |
options: don't trigger bool "compact" path for --loop-file
In theory an incompatible change, but I think it's for the better.
Impact should be relatively low. I hope.
Fixes: #7676
-rw-r--r-- | DOCS/interface-changes.rst | 2 | ||||
-rw-r--r-- | options/options.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst index 45aaf99515..1b2e30fc10 100644 --- a/DOCS/interface-changes.rst +++ b/DOCS/interface-changes.rst @@ -65,6 +65,8 @@ Interface changes vaguely a replacement of the removed option, but not the same - change another detail for track selection options (see --aid manpage entry) + - reading loop-file property as native property or mpv_node will now return + "inf" instead of boolean true (also affects loop option) --- mpv 0.32.0 --- - change behavior when using legacy option syntax with options that start with two dashes (``--`` instead of a ``-``). Now, using the recommended diff --git a/options/options.c b/options/options.c index 881810589d..ac18960af0 100644 --- a/options/options.c +++ b/options/options.c @@ -648,8 +648,8 @@ static const m_option_t mp_opts[] = { M_RANGE(1, 10000)}, {"loop-file", OPT_CHOICE(loop_file, {"no", 0}, - {"yes", -1}, - {"inf", -1}), + {"inf", -1}, + {"yes", -1}), M_RANGE(0, 10000)}, {"loop", OPT_ALIAS("loop-file")}, |