summaryrefslogtreecommitdiffstats
path: root/options/m_config.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-23 17:30:19 +0100
committerwm4 <wm4@nowhere>2013-12-23 17:30:19 +0100
commitfd081c467d2e2e4fe9a6918b8f07a063bcd01c8e (patch)
tree645c5d20a747e578d6044994900a3e75c4d656d6 /options/m_config.c
parent9fb0441b163eb073f882ab031e0749f838f3b851 (diff)
downloadmpv-fd081c467d2e2e4fe9a6918b8f07a063bcd01c8e.tar.bz2
mpv-fd081c467d2e2e4fe9a6918b8f07a063bcd01c8e.tar.xz
options: print any options set in verbose mode
So we will know whether someone uses broken config file options when posting a log with -v.
Diffstat (limited to 'options/m_config.c')
-rw-r--r--options/m_config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/options/m_config.c b/options/m_config.c
index 0fc99b0257..4b520c758a 100644
--- a/options/m_config.c
+++ b/options/m_config.c
@@ -490,6 +490,11 @@ static int m_config_parse_option(struct m_config *config, struct bstr name,
if ((flags & M_SETOPT_PRESERVE_CMDLINE) && co->is_set_from_cmdline)
set = false;
+ if (set) {
+ MP_VERBOSE(config, "Setting option '%.*s' = '%.*s' (flags = %d)\n",
+ BSTR_P(name), BSTR_P(param), flags);
+ }
+
// Check if this option isn't forbidden in the current mode
if ((flags & M_SETOPT_FROM_CONFIG_FILE) && (co->opt->flags & M_OPT_NOCFG)) {
MP_ERR(config, "The %.*s option can't be used in a config file.\n",