diff options
author | wm4 <wm4@nowhere> | 2012-09-18 15:50:24 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-09-23 14:58:21 +0200 |
commit | 7fe56f16026d6b2440e879078f8848a5056f1da8 (patch) | |
tree | eefc51ce3dc65e000bbc8290f50e60889c35ab7f /m_option.h | |
parent | f360f492d6c73197890eeb86759d417b23b52452 (diff) | |
download | mpv-7fe56f16026d6b2440e879078f8848a5056f1da8.tar.bz2 mpv-7fe56f16026d6b2440e879078f8848a5056f1da8.tar.xz |
options: accept "yes" and "no" only for flags
This removes the alternative values like "off", "0", "false" etc., and
also the non-English versions of these.
This is done for general consistency. It's better to have a single way
of doing things when multiple ways don't add singificant value.
Also update some choices for consistency.
Diffstat (limited to 'm_option.h')
-rw-r--r-- | m_option.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m_option.h b/m_option.h index bb5f7da304..f05fe17bd4 100644 --- a/m_option.h +++ b/m_option.h @@ -472,7 +472,7 @@ static inline void m_option_free(const m_option_t *opt, void *dst) #define OPT_CHOICE_OR_INT_(optname, varname, flags, minval, maxval, choices, ...) OPT_GENERAL(optname, varname, (flags) | CONF_RANGE, .min = minval, .max = maxval, .priv = (void *)&(const struct m_opt_choice_alternatives[]){OPT_HELPER_REMOVEPAREN choices, {NULL}}, __VA_ARGS__) #define OPT_TIME(...) OPT_GENERAL(__VA_ARGS__, .type = &m_option_type_time) -#define OPT_TRACKCHOICE(name, var) OPT_CHOICE_OR_INT(name, var, 0, 0, 8190, ({"off", -2}, {"no", -2}, {"auto", -1})) +#define OPT_TRACKCHOICE(name, var) OPT_CHOICE_OR_INT(name, var, 0, 0, 8190, ({"no", -2}, {"auto", -1})) // subconf must have the type struct m_sub_options. // flagv should be M_OPT_MERGE or M_OPT_FLATTEN. |