From 2768ded1b981e43a3bd15d9fe6bb0cf3a303254d Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 12 Dec 2014 23:22:50 +0100 Subject: [PATCH] options: fix parsing for --ab-loop-* Editing mistake. Oops. --- options/m_option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options/m_option.c b/options/m_option.c index f59ce6a47c..70d21ad39e 100644 --- a/options/m_option.c +++ b/options/m_option.c @@ -2180,7 +2180,7 @@ static int parse_time(struct mp_log *log, const m_option_t *opt, if (param.len == 0) return M_OPT_MISSING_PARAM; - if (HAS_NOPTS(opt) == MP_NOPTS_VALUE && bstr_equals0(param, "no")) { + if (HAS_NOPTS(opt) && bstr_equals0(param, "no")) { time = MP_NOPTS_VALUE; } else if (!parse_timestring(param, &time, 0)) { mp_err(log, "Option %.*s: invalid time: '%.*s'\n",