mirror of
https://github.com/mpv-player/mpv
synced 2025-01-03 13:32:16 +00: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:
parent
8b141ab9ac
commit
43af055a70
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user