command: shuffle cache-dump start message

This is better?
This commit is contained in:
wm4 2019-07-10 21:34:38 +02:00
parent f7678575a5
commit 1dd0b2fe34
1 changed files with 2 additions and 2 deletions

View File

@ -5620,14 +5620,14 @@ static void run_dump_cmd(struct mp_cmd_ctx *cmd, double start, double end,
return; return;
} }
mp_cmd_msg(cmd, MSGL_INFO, "Cache dumping started.");
if (!demux_cache_dump_set(mpctx->demuxer, start, end, filename)) { if (!demux_cache_dump_set(mpctx->demuxer, start, end, filename)) {
mp_cmd_msg(cmd, MSGL_INFO, "Cache dumping stopped."); mp_cmd_msg(cmd, MSGL_INFO, "Cache dumping stopped.");
mp_cmd_ctx_complete(cmd); mp_cmd_ctx_complete(cmd);
return; return;
} }
mp_cmd_msg(cmd, MSGL_INFO, "Cache dumping started.");
ctx->cache_dump_cmd = cmd; ctx->cache_dump_cmd = cmd;
cache_dump_poll(mpctx); cache_dump_poll(mpctx);
} }