mirror of
https://github.com/mpv-player/mpv
synced 2025-03-24 20:31:37 +00:00
options: fix pseudo-options like -v
Some pseudo-options do not have associated storage, which made
m_config_set_option_raw() return failure.
Regression due to commit d1d5e9dd
.
This commit is contained in:
parent
ffc9aa8104
commit
2d34171bec
@ -790,7 +790,7 @@ static int m_config_parse_option(struct m_config *config, struct bstr name,
|
||||
|
||||
r = m_option_parse(config->log, co->opt, name, param, &val);
|
||||
|
||||
if (r >= 0)
|
||||
if (r >= 0 && co->data)
|
||||
r = m_config_set_option_raw(config, co, &val, flags);
|
||||
|
||||
m_option_free(co->opt, &val);
|
||||
|
Loading…
Reference in New Issue
Block a user