diff options
author | Uoti Urpala <uau@mplayer2.org> | 2012-02-25 16:34:18 +0200 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2012-02-25 16:40:47 +0200 |
commit | d0bae74702bf74a38ec36abd267efa0b070fc943 (patch) | |
tree | 7d0f87c179eef9af98bfa0c851cb13945a92f5d3 /mplayer.c | |
parent | e796c7495cab78e0468c9c3a76b1bcaa3fcd1798 (diff) | |
download | mpv-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |