summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-10-01 21:10:59 +0200
committerwm4 <wm4@nowhere>2015-10-01 21:10:59 +0200
commit24f34c9e8e4131b0b01b7bf08eaa8b5095286631 (patch)
treea862f1881eaa9f669acf817e30f6e485600bfaa3 /player
parent98c4ab6d1329c95ec7454e80cc9a4d51ffab3c36 (diff)
downloadmpv-24f34c9e8e4131b0b01b7bf08eaa8b5095286631.tar.bz2
mpv-24f34c9e8e4131b0b01b7bf08eaa8b5095286631.tar.xz
player: print tags under different log prefix
A minor, but apparently common feature request. Fixes #2360.
Diffstat (limited to 'player')
-rw-r--r--player/loadfile.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index 2b87dfd927..40f35472e7 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -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;