From d0bae74702bf74a38ec36abd267efa0b070fc943 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Sat, 25 Feb 2012 16:34:18 +0200 Subject: osd: erase terminal OSD line with mp_msg() instead of printf() The terminal OSD line was written with mp_msg(MSGT_CPLAYER, ...) but erased with printf(). This meant that disabling MSGT_CPLAYER messages would prevent the terminal line from being printed, but a line (probably unrelated) would still be cleared. Change the clearing code to use mp_msg(MSGT_CPLAYER, ...) too. --- mplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mplayer.c b/mplayer.c index 3452b5df0f..3fef3b1f12 100644 --- a/mplayer.c +++ b/mplayer.c @@ -1750,7 +1750,7 @@ static void update_osd_msg(struct MPContext *mpctx) // Clear the term osd line if (opts->term_osd && osd->osd_text[0]) { osd->osd_text[0] = 0; - printf("%s\n", opts->term_osd_esc); + mp_msg(MSGT_CPLAYER, MSGL_STATUS, "%s\n", opts->term_osd_esc); } } -- cgit v1.2.3