mirror of https://github.com/mpv-player/mpv
options: don't let --vf-clr etc. take an argument
It was ignored before. Passing an argument makes no sense, and might be mistaken for some form of --vf-del, so complain about it. This also affects --af-clr and the vf/af commands.
This commit is contained in:
parent
3823d5eb7e
commit
9e0cd3b3e7
|
@ -2934,6 +2934,11 @@ static int parse_obj_settings_list(struct mp_log *log, const m_option_t *opt,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (op == OP_CLR) {
|
if (op == OP_CLR) {
|
||||||
|
if (param.len) {
|
||||||
|
mp_err(log, "Option %.*s: -clr does not take an argument.\n",
|
||||||
|
BSTR_P(name));
|
||||||
|
return M_OPT_INVALID;
|
||||||
|
}
|
||||||
if (dst)
|
if (dst)
|
||||||
free_obj_settings_list(dst);
|
free_obj_settings_list(dst);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue