summaryrefslogtreecommitdiffstats
path: root/options/m_config.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-06-13 02:08:48 +0200
committerwm4 <wm4@nowhere>2014-06-13 02:10:45 +0200
commit6a4a5595d8d2a17188cdea64dfdfceed88d1905a (patch)
tree67ae9607f27ea120c7d1299cdf0bbbb603e5789e /options/m_config.c
parent09a61ba03ab0918d045d02427ccdc775abc38f03 (diff)
downloadmpv-6a4a5595d8d2a17188cdea64dfdfceed88d1905a.tar.bz2
mpv-6a4a5595d8d2a17188cdea64dfdfceed88d1905a.tar.xz
options: remove OPT_FLAG_CONSTANTS
This means use of the min/max fields can be dropped for the flag option type, which makes some things slightly easier. I'm also not sure if the client API handled the case of flag not being 0 or 1 correctly, and this change gets rid of this concern.
Diffstat (limited to 'options/m_config.c')
-rw-r--r--options/m_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/options/m_config.c b/options/m_config.c
index f3b73784a5..ebb24ad098 100644
--- a/options/m_config.c
+++ b/options/m_config.c
@@ -302,7 +302,7 @@ static void add_negation_option(struct m_config *config,
const struct m_option *opt = orig->opt;
int value;
if (opt->type == CONF_TYPE_FLAG) {
- value = opt->min;
+ value = 0;
} else if (opt->type == CONF_TYPE_CHOICE) {
// Find out whether there's a "no" choice.
// m_option_parse() should be used for this, but it prints