m_property: fix a typo

The wrong value was checked for an error. Oops.

Found by Coverity.
This commit is contained in:
wm4 2014-11-21 10:07:06 +01:00
parent df43e2d22a
commit 75f38dcc9a
1 changed files with 1 additions and 1 deletions

View File

@ -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;