From 33c49209671dce8bfa6c1ada468b225f2f353a6e Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 5 Jan 2014 20:15:19 +0100 Subject: player: always ise [statusline] for terminal OSD This was inconsistent: the actual statusline used [statusline] as message prefix, while other parts of the terminal OSD used [cplayer] (and MSGL_STATUS). This commit makes it consistent. --- player/osd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/player/osd.c b/player/osd.c index d1af1a6e65..70c1a0ddaf 100644 --- a/player/osd.c +++ b/player/osd.c @@ -485,8 +485,8 @@ void update_osd_msg(struct MPContext *mpctx) mpctx->terminal_osd_text = talloc_strdup(mpctx, msg->msg); // Multi-line message => clear what will be the second line write_status_line(mpctx, ""); - MP_MSG(mpctx, MSGL_STATUS, "%s%s\n", opts->term_osd_esc, - mpctx->terminal_osd_text); + mp_msg(mpctx->statusline, MSGL_STATUS, + "%s%s\n", opts->term_osd_esc, mpctx->terminal_osd_text); print_status(mpctx); } } @@ -512,6 +512,6 @@ void update_osd_msg(struct MPContext *mpctx) // Clear the term osd line if (opts->term_osd && mpctx->terminal_osd_text[0]) { mpctx->terminal_osd_text[0] = '\0'; - MP_MSG(mpctx, MSGL_STATUS, "%s\n", opts->term_osd_esc); + mp_msg(mpctx->statusline, MSGL_STATUS, "%s\n", opts->term_osd_esc); } } -- cgit v1.2.3