diff options
author | wm4 <wm4@nowhere> | 2020-05-23 04:15:11 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-05-23 04:15:11 +0200 |
commit | e822207ab4f860c062fce78ba75c5d32290f4163 (patch) | |
tree | c9530ed53996237d9fd7d54de04e07a3c080923d /player | |
parent | 448a964070d926cfde9ac45298f63aeb029ffbe6 (diff) | |
download | mpv-e822207ab4f860c062fce78ba75c5d32290f4163.tar.bz2 mpv-e822207ab4f860c062fce78ba75c5d32290f4163.tar.xz |
command: fix dump-cache parameter parsing
Commit 9d32d62b615 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.
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/player/command.c b/player/command.c index c6219676cf..08c5caf1f7 100644 --- a/player/command.c +++ b/player/command.c @@ -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, |