command: fix --quiet, --really-quiet options

These are not mapped as property, so the option-property bridge has to
skip them. Do this automatically if a property is not found. I know that
this affects --quiet and --really-quiet, but in theory there could be
more.
This commit is contained in:
wm4 2016-09-18 11:39:30 +02:00
parent f8659d0013
commit 74c342c6d3
1 changed files with 2 additions and 0 deletions

View File

@ -302,6 +302,8 @@ int mp_on_set_option(void *ctx, struct m_config_option *co, void *data, int flag
}
int r = mp_property_do_silent(name, M_PROPERTY_SET, data, mpctx);
if (r == M_PROPERTY_UNKNOWN)
goto direct_option; // not mapped as property
if (r != M_PROPERTY_OK)
return M_OPT_INVALID;