aboutsummaryrefslogtreecommitdiffhomepage
path: root/options
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2018-01-16 11:31:25 +0100
committerGravatar Kevin Mitchell <kevmitch@gmail.com>2018-01-18 00:59:07 -0800
commitcc3cdcb0f065eb0166acc664bb3c743c4bcd246b (patch)
tree07c94ec4473963e89b055a7a113c73ed2d9c6eb2 /options
parent0d9ca23b35709ee857ab313acfc3e4a53db5a616 (diff)
options: don't warn when reading deprecated option as raw value
mp_read_option_raw() should not print the deprecation warning if the option is deprecated. This change also means you can't pass an alias to the function, but all existing uses should be fine.
Diffstat (limited to 'options')
-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 a487b64869..606e836d20 100644
--- a/options/m_config.c
+++ b/options/m_config.c
@@ -1446,7 +1446,7 @@ void mp_read_option_raw(struct mpv_global *global, const char *name,
const struct m_option_type *type, void *dst)
{
struct m_config_shadow *shadow = global->config;
- struct m_config_option *co = m_config_get_co(shadow->root, bstr0(name));
+ struct m_config_option *co = m_config_get_co_raw(shadow->root, bstr0(name));
assert(co);
assert(co->shadow_offset >= 0);
assert(co->opt->type == type);