summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-05 20:15:19 +0100
committerwm4 <wm4@nowhere>2014-01-06 20:23:06 +0100
commit33c49209671dce8bfa6c1ada468b225f2f353a6e (patch)
treea8a6c4f381f03e83a6b5cbb1fb30751493d8febd
parent0c36f655e19502faf95b8eab0caf7c334ad4d11c (diff)
downloadmpv-33c49209671dce8bfa6c1ada468b225f2f353a6e.tar.bz2
mpv-33c49209671dce8bfa6c1ada468b225f2f353a6e.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.c6
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);
}
}