player: put --term-playing-msg in a separate log category

Fixes #1983.
This commit is contained in:
wm4 2015-07-13 13:06:09 +02:00
parent 9b15c99aa1
commit 0d35c78a6c
1 changed files with 3 additions and 1 deletions

View File

@ -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]) {