summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-04-09 11:08:03 +0200
committerwm4 <wm4@nowhere>2020-04-09 11:13:38 +0200
commit9d32d62b6154784a4e38dcb0ff50b8331e9169bf (patch)
treef2507d768e02fadc312e9ccc53765527b3d992c9 /options/options.c
parenta67bda28409dd893617ef47f6e089fd753d7de78 (diff)
downloadmpv-9d32d62b6154784a4e38dcb0ff50b8331e9169bf.tar.bz2
mpv-9d32d62b6154784a4e38dcb0ff50b8331e9169bf.tar.xz
options: fix ab-loop-* properties
These used ".min = MP_NOPTS_VALUE" to indicate certain exceptions. This broke with the recent change to how min/max are handled, which made setting min or max mean that a value range is used, thus setting max=0. Fix this by not using magic a value in .min; replace it with a proper flag. Fixes: #7596
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/options/options.c b/options/options.c
index c7d75b0648..3536e439a0 100644
--- a/options/options.c
+++ b/options/options.c
@@ -447,8 +447,8 @@ static const m_option_t mp_opts[] = {
{"rebase-start-time", OPT_FLAG(rebase_start_time)},
- {"ab-loop-a", OPT_TIME(ab_loop[0]), .min = MP_NOPTS_VALUE},
- {"ab-loop-b", OPT_TIME(ab_loop[1]), .min = MP_NOPTS_VALUE},
+ {"ab-loop-a", OPT_TIME(ab_loop[0]), .flags = M_OPT_ALLOW_NO},
+ {"ab-loop-b", OPT_TIME(ab_loop[1]), .flags = M_OPT_ALLOW_NO},
{"ab-loop-count", OPT_CHOICE(ab_loop_count, {"inf", -1}),
M_RANGE(0, INT_MAX)},