command: fix dump-cache parameter parsing

Commit 9d32d62b61 broke this when it changed OPT_TIME. I simply forgot
to adjust the command definition. The effect was that "no" was not
accepted as value.
This commit is contained in:
wm4 2020-05-23 04:15:11 +02:00
parent 448a964070
commit e822207ab4
1 changed files with 4 additions and 2 deletions

View File

@ -6091,8 +6091,10 @@ const struct mp_cmd_def mp_cmds[] = {
{ "load-script", cmd_load_script, {{"filename", OPT_STRING(v.s)}} },
{ "dump-cache", cmd_dump_cache, { {"start", OPT_TIME(v.d), .min = MP_NOPTS_VALUE},
{"end", OPT_TIME(v.d), .min = MP_NOPTS_VALUE},
{ "dump-cache", cmd_dump_cache, { {"start", OPT_TIME(v.d),
.flags = M_OPT_ALLOW_NO},
{"end", OPT_TIME(v.d),
.flags = M_OPT_ALLOW_NO},
{"filename", OPT_STRING(v.s)} },
.exec_async = true,
.can_abort = true,