diff options
author | wm4 <wm4@nowhere> | 2014-04-14 20:40:23 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-14 20:51:27 +0200 |
commit | 059d989bf6c9689cf13cbf3ba069210bf715814d (patch) | |
tree | bb269ea4c92f4bb858820a8cd42b8a5a5b06d338 /options/m_option.c | |
parent | 186fd0311db32a24879669620fd6a2d8e32d2931 (diff) | |
download | mpv-059d989bf6c9689cf13cbf3ba069210bf715814d.tar.bz2 mpv-059d989bf6c9689cf13cbf3ba069210bf715814d.tar.xz |
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.
Diffstat (limited to 'options/m_option.c')
-rw-r--r-- | options/m_option.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |