0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

options: rename empty string special case for option values

"--bla" behaved differently from "--bla=". Change this, in line with how
options have been changed in general over the last few years.
This commit is contained in:
wm4 2017-12-01 21:01:40 +01:00
parent 8b141ab9ac
commit 43af055a70

View File

@ -995,9 +995,6 @@ static int clamp_str(const m_option_t *opt, void *val)
static int parse_str(struct mp_log *log, const m_option_t *opt,
struct bstr name, struct bstr param, void *dst)
{
if (param.start == NULL)
return M_OPT_MISSING_PARAM;
m_opt_string_validate_fn validate = opt->priv;
if (validate) {
int r = validate(log, opt, name, param);