From 8e75cc3339801cec242f0bdce0d4e0dd261f1876 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 21 Dec 2013 22:00:26 +0100 Subject: player: use separate msg prefix for statusline So the user can specifically mute or unmute the status line with --msglevel. Accidentally removed with commit 5e0c4ec3. --- player/osd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'player/osd.c') diff --git a/player/osd.c b/player/osd.c index f475757bdc..607af6714e 100644 --- a/player/osd.c +++ b/player/osd.c @@ -72,13 +72,13 @@ void write_status_line(struct MPContext *mpctx, const char *line) { struct MPOpts *opts = mpctx->opts; if (opts->slave_mode) { - MP_MSG(mpctx, MSGL_STATUS, "%s\n", line); + mp_msg(mpctx->statusline, MSGL_STATUS, "%s\n", line); } else if (erase_to_end_of_line) { - MP_MSG(mpctx, MSGL_STATUS, "%s%s\r", line, erase_to_end_of_line); + mp_msg(mpctx->statusline, MSGL_STATUS, "%s%s\r", line, erase_to_end_of_line); } else { int pos = strlen(line); int width = get_term_width() - pos; - MP_MSG(mpctx, MSGL_STATUS, "%s%*s\r", line, width, ""); + mp_msg(mpctx->statusline, MSGL_STATUS, "%s%*s\r", line, width, ""); } } -- cgit v1.2.3