summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-13 13:06:09 +0200
committerwm4 <wm4@nowhere>2015-07-13 13:06:09 +0200
commit0d35c78a6cf4a155ec32ccc07ce7ec80bf1e4318 (patch)
tree1b7526ad51487561f49d90a1e550298fe0d4b76c
parent9b15c99aa13acdbb3e86fbb3395ad107b436fdaa (diff)
downloadmpv-0d35c78a6cf4a155ec32ccc07ce7ec80bf1e4318.tar.bz2
mpv-0d35c78a6cf4a155ec32ccc07ce7ec80bf1e4318.tar.xz
player: put --term-playing-msg in a separate log category
Fixes #1983.
-rw-r--r--player/playloop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/player/playloop.c b/player/playloop.c
index 9ffeae6842..02908ed951 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -931,7 +931,9 @@ static void handle_playback_restart(struct MPContext *mpctx, double endpts)
if (opts->playing_msg && opts->playing_msg[0]) {
char *msg =
mp_property_expand_escaped_string(mpctx, opts->playing_msg);
- MP_INFO(mpctx, "%s\n", msg);
+ struct mp_log *log = mp_log_new(NULL, mpctx->log, "!term-msg");
+ mp_info(log, "%s\n", msg);
+ talloc_free(log);
talloc_free(msg);
}
if (opts->osd_playing_msg && opts->osd_playing_msg[0]) {