summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2012-02-25 16:34:18 +0200
committerUoti Urpala <uau@mplayer2.org>2012-02-25 16:40:47 +0200
commitd0bae74702bf74a38ec36abd267efa0b070fc943 (patch)
tree7d0f87c179eef9af98bfa0c851cb13945a92f5d3 /mplayer.c
parente796c7495cab78e0468c9c3a76b1bcaa3fcd1798 (diff)
downloadmpv-d0bae74702bf74a38ec36abd267efa0b070fc943.tar.bz2
mpv-d0bae74702bf74a38ec36abd267efa0b070fc943.tar.xz
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.
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}