summaryrefslogtreecommitdiffstats
path: root/options/m_property.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-26 20:32:35 +0100
committerwm4 <wm4@nowhere>2014-02-26 21:03:35 +0100
commita0b1d5f888130749f4d7d719a92a7500f802e33f (patch)
tree7c7ef17c59958d0867088108c375c967bb054478 /options/m_property.c
parent8461143ed7c0088fe08379898e74a7fbcf0a9d1e (diff)
downloadmpv-a0b1d5f888130749f4d7d719a92a7500f802e33f.tar.bz2
mpv-a0b1d5f888130749f4d7d719a92a7500f802e33f.tar.xz
m_property: fix confused error code
This broke the client API.
Diffstat (limited to 'options/m_property.c')
-rw-r--r--options/m_property.c2
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);