diff options
author | wm4 <wm4@nowhere> | 2013-07-27 21:31:04 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-28 18:56:49 +0200 |
commit | 0293eac84adbc34beb5d8d0bc34360d607aac79f (patch) | |
tree | 23a70a9948a58631c75a0f70ba194bdf3b1f1732 | |
parent | a737308f7347f88dc6b34ad63b74c7841078d64b (diff) | |
download | mpv-0293eac84adbc34beb5d8d0bc34360d607aac79f.tar.bz2 mpv-0293eac84adbc34beb5d8d0bc34360d607aac79f.tar.xz |
m_config: try to print min/max values as integers in --list-options
This switched to exponential representation too soon, and large integer
values looked bad in the --list-options output.
-rw-r--r-- | core/m_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/m_config.c b/core/m_config.c index a67ffa6a85..406c363093 100644 --- a/core/m_config.c +++ b/core/m_config.c @@ -665,9 +665,9 @@ void m_config_print_option_list(const struct m_config *config) snprintf(min, sizeof(min), "any"); snprintf(max, sizeof(max), "any"); if (opt->flags & M_OPT_MIN) - snprintf(min, sizeof(min), "%g", opt->min); + snprintf(min, sizeof(min), "%.14g", opt->min); if (opt->flags & M_OPT_MAX) - snprintf(max, sizeof(max), "%g", opt->max); + snprintf(max, sizeof(max), "%.14g", opt->max); mp_msg(MSGT_CFGPARSER, MSGL_INFO, " (%s to %s)", min, max); } char *def = get_option_value_string(defaults, co->name); |