mirror of
https://github.com/mpv-player/mpv
synced 2025-01-08 16:10:29 +00:00
command: fix debug output
It was a bit ugly/annoying.
This commit is contained in:
parent
223d9b6bc9
commit
986d15ea9c
@ -428,12 +428,12 @@ void mp_cmd_dump(struct mp_log *log, int msgl, char *header, struct mp_cmd *cmd)
|
||||
if (!mp_msg_test(log, msgl))
|
||||
return;
|
||||
if (header)
|
||||
mp_msg(log, msgl, "%s: ", header);
|
||||
mp_msg(log, msgl, "%s ", header);
|
||||
if (!cmd) {
|
||||
mp_msg(log, msgl, "(NULL)\n");
|
||||
return;
|
||||
}
|
||||
mp_msg(log, msgl, "%s, flags=%d args=[", cmd->name, cmd->flags);
|
||||
mp_msg(log, msgl, "%s, flags=%d, args=[", cmd->name, cmd->flags);
|
||||
for (int n = 0; n < cmd->nargs; n++) {
|
||||
char *s = m_option_print(cmd->args[n].type, &cmd->args[n].v);
|
||||
if (n)
|
||||
|
@ -3720,7 +3720,7 @@ int run_command(MPContext *mpctx, mp_cmd_t *cmd)
|
||||
bool msg_or_nobar_osd = msg_osd && !(auto_osd && opts->osd_bar_visible);
|
||||
int osdl = msg_osd ? 1 : OSD_LEVEL_INVISIBLE;
|
||||
|
||||
mp_cmd_dump(mpctx->log, MSGL_V, "Run: ", cmd);
|
||||
mp_cmd_dump(mpctx->log, MSGL_V, "Run command:", cmd);
|
||||
|
||||
if (cmd->flags & MP_EXPAND_PROPERTIES) {
|
||||
for (int n = 0; n < cmd->nargs; n++) {
|
||||
|
Loading…
Reference in New Issue
Block a user