diff options
author | wm4 <wm4@nowhere> | 2015-02-16 20:04:31 +0100 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-02-19 13:24:09 +0900 |
commit | 40149c017cfef3f86acda2dad70c439d22a84eba (patch) | |
tree | 7362d3da1b3a194d44c9d8af3366b0f4a832d94c | |
parent | 0c9f10e0d148caaa16b823fe89402fdf135e5d70 (diff) | |
download | mpv-40149c017cfef3f86acda2dad70c439d22a84eba.tar.bz2 mpv-40149c017cfef3f86acda2dad70c439d22a84eba.tar.xz |
m_config: log options set by the client API too
(cherry picked from commit d34eabe286c46811f0fb1188c789572a57df2b5d)
-rw-r--r-- | options/m_config.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/options/m_config.c b/options/m_config.c index 0c925368c2..43fd508a9d 100644 --- a/options/m_config.c +++ b/options/m_config.c @@ -717,6 +717,13 @@ int m_config_set_option_node(struct m_config *config, bstr name, if (r >= 0) r = m_config_set_option_raw(config, co, &val, flags); + if (mp_msg_test(config->log, MSGL_V)) { + char *s = m_option_type_node.print(NULL, data); + MP_VERBOSE(config, "Setting option '%.*s' = %s (flags = %d) -> %d\n", + BSTR_P(name), s ? s : "?", flags, r); + talloc_free(s); + } + m_option_free(co->opt, &val); return r; } |