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 2018-01-16 11:31:25 +01:00 committed by Kevin Mitchell
parent 0d9ca23b35
commit cc3cdcb0f0
1 changed files with 1 additions and 1 deletions

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);