From 059d989bf6c9689cf13cbf3ba069210bf715814d Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 14 Apr 2014 20:40:23 +0200 Subject: options: don't allow --no-foo=yes It's a bit strange to allow this, so get rid of it. This probably breaks a bunch of user config files. The client API still allows setting them with MPV_FORMAT_FLAG with a value of 1 (i.e. true), but I guess this is tolerable. --- options/m_option.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'options') diff --git a/options/m_option.c b/options/m_option.c index a2f3af4177..ec0ea61fbe 100644 --- a/options/m_option.c +++ b/options/m_option.c @@ -196,7 +196,7 @@ const m_option_type_t m_option_type_flag = { static int parse_store(struct mp_log *log, const m_option_t *opt, struct bstr name, struct bstr param, void *dst) { - if (param.len == 0 || bstrcmp0(param, "yes") == 0) { + if (param.len == 0) { if (dst) VAL(dst) = opt->max; return 0; @@ -235,7 +235,7 @@ const m_option_type_t m_option_type_store = { static int parse_store_float(struct mp_log *log, const m_option_t *opt, struct bstr name, struct bstr param, void *dst) { - if (param.len == 0 || bstrcmp0(param, "yes") == 0) { + if (param.len == 0) { if (dst) VAL(dst) = opt->max; return 0; -- cgit v1.2.3