mirror of https://github.com/mpv-player/mpv
client API: drop some compatibility handling
See commit e4bc563fd2
for more information.
This commit is contained in:
parent
a22ff44f7b
commit
533ff28574
|
@ -22,6 +22,9 @@ Interface changes
|
|||
--- mpv 0.27.0 ---
|
||||
- drop previously deprecated --field-dominance option
|
||||
- drop previously deprecated "osd" command
|
||||
- remove client API compatibility handling for "script", "sub-file",
|
||||
"audio-file", "external-file" (these cases used to log a deprecation
|
||||
warning)
|
||||
--- mpv 0.26.0 ---
|
||||
- remove remaining deprecated audio device options, like --alsa-device
|
||||
Some of them were removed in earlier releases.
|
||||
|
|
|
@ -910,19 +910,8 @@ int m_config_set_option_node(struct m_config *config, bstr name,
|
|||
int r;
|
||||
|
||||
struct m_config_option *co = m_config_get_co(config, name);
|
||||
if (!co) {
|
||||
co = m_config_get_co_raw(config, name);
|
||||
if (co && co->opt->type == &m_option_type_cli_alias) {
|
||||
/*bstr old_name = name;
|
||||
co = m_config_mogrify_cli_opt(config, &name, &(bool){0}, &(int){0});
|
||||
*/
|
||||
name = bstr0((char *)co->opt->priv);
|
||||
MP_WARN(config, "Setting %.*s via API is deprecated, set %s instead.\n",
|
||||
BSTR_P(name), co->opt->name);
|
||||
} else {
|
||||
return M_OPT_UNKNOWN;
|
||||
}
|
||||
}
|
||||
if (!co)
|
||||
return M_OPT_UNKNOWN;
|
||||
|
||||
// Do this on an "empty" type to make setting the option strictly overwrite
|
||||
// the old value, as opposed to e.g. appending to lists.
|
||||
|
|
Loading…
Reference in New Issue