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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/options/m_property.c b/options/m_property.c
index 431e16a51a..d286f60ad8 100644
--- a/options/m_property.c
+++ b/options/m_property.c
@@ -159,7 +159,8 @@ int m_property_do(struct mp_log *log, const struct m_property *prop_list,
return r;
}
case M_PROPERTY_GET_CONSTRICTED_TYPE: {
- if ((r = do_action(prop_list, name, action, arg, ctx)) >= 0)
+ r = do_action(prop_list, name, action, arg, ctx);
+ if (r >= 0 || r == M_PROPERTY_UNAVAILABLE)
return r;
if ((r = do_action(prop_list, name, M_PROPERTY_GET_TYPE, arg, ctx)) >= 0)
return r;