diff options
author | wm4 <wm4@nowhere> | 2014-01-05 20:15:19 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-05 20:15:19 +0100 |
commit | 5819f4b7c9e65a2b73caa4f544dbbd97e3f21c93 (patch) | |
tree | b61142f67e726913e6d8ddd2e070ade4a648b952 | |
parent | 2123ca52c9c032f5f77923bc2bb3057cbe6ab4b9 (diff) | |
download | mpv-5819f4b7c9e65a2b73caa4f544dbbd97e3f21c93.tar.bz2 mpv-5819f4b7c9e65a2b73caa4f544dbbd97e3f21c93.tar.xz |
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.
-rw-r--r-- | player/osd.c | 6 |
1 files 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); } } |