diff options
Diffstat (limited to 'options')
-rw-r--r-- | options/m_property.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/options/m_property.c b/options/m_property.c index 5c38e02826..1dad9bd290 100644 --- a/options/m_property.c +++ b/options/m_property.c @@ -220,7 +220,7 @@ int m_property_do(struct mp_log *log, const m_option_t *prop_list, int err = m_option_set_node(&opt, &val, node); if (err == M_OPT_UNKNOWN) { r = M_PROPERTY_NOT_IMPLEMENTED; - } else if (r < 0) { + } else if (err < 0) { r = M_PROPERTY_INVALID_FORMAT; } else { r = do_action(prop_list, name, M_PROPERTY_SET, &val, ctx); |