diff options
author | wm4 <wm4@nowhere> | 2013-12-19 21:28:55 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-19 21:31:18 +0100 |
commit | 5e0c4ec3e8f17064bf6837d33e3583afbd9214e2 (patch) | |
tree | f4b4a987c0c1464255d8d9a55c69eac9965f19d9 /player/osd.c | |
parent | 7a8207a3fbb93ddd2f9954f6ff1aedad043c47f1 (diff) | |
download | mpv-5e0c4ec3e8f17064bf6837d33e3583afbd9214e2.tar.bz2 mpv-5e0c4ec3e8f17064bf6837d33e3583afbd9214e2.tar.xz |
player: replace some overlooked mp_msgs
There are still some using IDENTIFY, and some without context in
configfiles.c.
Diffstat (limited to 'player/osd.c')
-rw-r--r-- | player/osd.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/player/osd.c b/player/osd.c index 6f73ea9bc3..c87585c42d 100644 --- a/player/osd.c +++ b/player/osd.c @@ -72,14 +72,13 @@ void write_status_line(struct MPContext *mpctx, const char *line) { struct MPOpts *opts = mpctx->opts; if (opts->slave_mode) { - mp_msg(MSGT_STATUSLINE, MSGL_STATUS, "%s\n", line); + MP_MSG(mpctx, MSGL_STATUS, "%s\n", line); } else if (erase_to_end_of_line) { - mp_msg(MSGT_STATUSLINE, MSGL_STATUS, - "%s%s\r", line, erase_to_end_of_line); + MP_MSG(mpctx, MSGL_STATUS, "%s%s\r", line, erase_to_end_of_line); } else { int pos = strlen(line); int width = get_term_width() - pos; - mp_msg(MSGT_STATUSLINE, MSGL_STATUS, "%s%*s\r", line, width, ""); + MP_MSG(mpctx, MSGL_STATUS, "%s%*s\r", line, width, ""); } } @@ -486,7 +485,7 @@ 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(MSGT_CPLAYER, MSGL_STATUS, "%s%s\n", opts->term_osd_esc, + MP_MSG(mpctx, MSGL_STATUS, "%s%s\n", opts->term_osd_esc, mpctx->terminal_osd_text); print_status(mpctx); } @@ -513,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(MSGT_CPLAYER, MSGL_STATUS, "%s\n", opts->term_osd_esc); + MP_MSG(mpctx, MSGL_STATUS, "%s\n", opts->term_osd_esc); } } |