summaryrefslogtreecommitdiffstats
path: root/options/m_property.c
diff options
context:
space:
mode:
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 1204f924b6..9a787b8e43 100644
--- a/options/m_property.c
+++ b/options/m_property.c
@@ -201,7 +201,7 @@ int m_property_do(struct mp_log *log, const struct m_property *prop_list,
int err = m_option_get_node(&opt, NULL, node, &val);
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 = M_PROPERTY_OK;