From cc3cdcb0f065eb0166acc664bb3c743c4bcd246b Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 16 Jan 2018 11:31:25 +0100 Subject: 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. --- options/m_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3