1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 00:42:57 +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:
wm4 2013-05-18 17:44:21 +02:00
parent 6b42881791
commit d1b37aff32

View File

@ -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);
}
if (param.len == 0)
return M_OPT_MISSING_PARAM;
if (!bstrcmp0(param, "help")) {
m_obj_list_t *ol = opt->priv;
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;
num++;
}
if (num == 0)
return M_OPT_INVALID;
if (op != OP_NONE && param.len == 0)
return M_OPT_MISSING_PARAM;
if (dst) {
m_obj_settings_t *list = VAL(dst);