diff options
author | wm4 <wm4@nowhere> | 2016-09-17 20:34:00 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-17 20:34:00 +0200 |
commit | 2d34171bec55294375e57f8bea86e2dee153d2cc (patch) | |
tree | 25ae9407f876cd4def508e7adb797271356c7a75 /options | |
parent | ffc9aa81044fa4d906a3fccec8a37b7b2a99643f (diff) | |
download | mpv-2d34171bec55294375e57f8bea86e2dee153d2cc.tar.bz2 mpv-2d34171bec55294375e57f8bea86e2dee153d2cc.tar.xz |
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.
Diffstat (limited to 'options')
-rw-r--r-- | options/m_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/options/m_config.c b/options/m_config.c index 50fa9248a1..c6c1bf9af1 100644 --- a/options/m_config.c +++ b/options/m_config.c @@ -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); |