0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02: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:
wm4 2016-09-17 20:34:00 +02:00
parent ffc9aa8104
commit 2d34171bec

View File

@ -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); 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); r = m_config_set_option_raw(config, co, &val, flags);
m_option_free(co->opt, &val); m_option_free(co->opt, &val);