mirror of
https://github.com/mpv-player/mpv
synced 2024-11-14 22:48:35 +01:00
player: print tags under different log prefix
A minor, but apparently common feature request. Fixes #2360.
This commit is contained in:
parent
98c4ab6d13
commit
24f34c9e8e
@ -198,10 +198,12 @@ void update_demuxer_properties(struct MPContext *mpctx)
|
||||
continue;
|
||||
}
|
||||
}
|
||||
struct mp_log *log = mp_log_new(NULL, mpctx->log, "!display-tags");
|
||||
if (!had_output)
|
||||
MP_INFO(mpctx, "File tags:\n");
|
||||
MP_INFO(mpctx, " %s: %s\n", info->keys[n], info->values[n]);
|
||||
mp_info(log, "File tags:\n");
|
||||
mp_info(log, " %s: %s\n", info->keys[n], info->values[n]);
|
||||
had_output = true;
|
||||
talloc_free(log);
|
||||
}
|
||||
talloc_free(mpctx->filtered_tags);
|
||||
mpctx->filtered_tags = info;
|
||||
|
Loading…
Reference in New Issue
Block a user