From f77a4450b4f1c665f92e2f9917482a97650437c6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 6 May 2020 15:27:00 +0200 Subject: 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 --- DOCS/interface-changes.rst | 2 ++ 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")}, -- cgit v1.2.3