mirror of
https://github.com/mpv-player/mpv
synced 2025-03-22 11:18:32 +00:00
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:
parent
0d9ca23b35
commit
cc3cdcb0f0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user