mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 09:02:38 +00:00
m_option: allow -vf ""
With the current semantics, there's no reason to disallow this. (Although in my opinion, -vf should rather map to -vf-add than -vf-set, however that is an independent issue from this change.)
This commit is contained in:
parent
6b42881791
commit
d1b37aff32
@ -2177,9 +2177,6 @@ static int parse_obj_settings_list(const m_option_t *opt, struct bstr name,
|
|||||||
return obj_settings_list_del(name, param, dst);
|
return obj_settings_list_del(name, param, dst);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (param.len == 0)
|
|
||||||
return M_OPT_MISSING_PARAM;
|
|
||||||
|
|
||||||
if (!bstrcmp0(param, "help")) {
|
if (!bstrcmp0(param, "help")) {
|
||||||
m_obj_list_t *ol = opt->priv;
|
m_obj_list_t *ol = opt->priv;
|
||||||
mp_msg(MSGT_CFGPARSER, MSGL_INFO, "Available video filters:\n");
|
mp_msg(MSGT_CFGPARSER, MSGL_INFO, "Available video filters:\n");
|
||||||
@ -2207,8 +2204,9 @@ static int parse_obj_settings_list(const m_option_t *opt, struct bstr name,
|
|||||||
return M_OPT_INVALID;
|
return M_OPT_INVALID;
|
||||||
num++;
|
num++;
|
||||||
}
|
}
|
||||||
if (num == 0)
|
|
||||||
return M_OPT_INVALID;
|
if (op != OP_NONE && param.len == 0)
|
||||||
|
return M_OPT_MISSING_PARAM;
|
||||||
|
|
||||||
if (dst) {
|
if (dst) {
|
||||||
m_obj_settings_t *list = VAL(dst);
|
m_obj_settings_t *list = VAL(dst);
|
||||||
|
Loading…
Reference in New Issue
Block a user