mirror of https://github.com/mpv-player/mpv
m_property: fix a typo
The wrong value was checked for an error. Oops. Found by Coverity.
This commit is contained in:
parent
df43e2d22a
commit
75f38dcc9a
|
@ -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);
|
int err = m_option_get_node(&opt, NULL, node, &val);
|
||||||
if (err == M_OPT_UNKNOWN) {
|
if (err == M_OPT_UNKNOWN) {
|
||||||
r = M_PROPERTY_NOT_IMPLEMENTED;
|
r = M_PROPERTY_NOT_IMPLEMENTED;
|
||||||
} else if (r < 0) {
|
} else if (err < 0) {
|
||||||
r = M_PROPERTY_INVALID_FORMAT;
|
r = M_PROPERTY_INVALID_FORMAT;
|
||||||
} else {
|
} else {
|
||||||
r = M_PROPERTY_OK;
|
r = M_PROPERTY_OK;
|
||||||
|
|
Loading…
Reference in New Issue