mirror of https://github.com/mpv-player/mpv
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:
parent
f8659d0013
commit
74c342c6d3
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue