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.
This commit is contained in:
wm4 authored and Kevin Mitchell committed 2018-01-18 00:59:07 -08:00
1 parent 0d9ca23b35
commit cc3cdcb0f0
1 file changed
+1 -1
+1 -1
View File
@@ -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);