summaryrefslogtreecommitdiffstats
path: root/player/osd.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-21 22:00:26 +0100
committerwm4 <wm4@nowhere>2013-12-21 22:13:05 +0100
commit8e75cc3339801cec242f0bdce0d4e0dd261f1876 (patch)
tree71b9acf02e59d1f6cd5581d2761abaa23184c010 /player/osd.c
parent6aaea76b4d62990419a53c715640dab1836bba7f (diff)
downloadmpv-8e75cc3339801cec242f0bdce0d4e0dd261f1876.tar.bz2
mpv-8e75cc3339801cec242f0bdce0d4e0dd261f1876.tar.xz
player: use separate msg prefix for statusline
So the user can specifically mute or unmute the status line with --msglevel. Accidentally removed with commit 5e0c4ec3.
Diffstat (limited to 'player/osd.c')
-rw-r--r--player/osd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/player/osd.c b/player/osd.c
index f475757bdc..607af6714e 100644
--- a/player/osd.c
+++ b/player/osd.c
@@ -72,13 +72,13 @@ void write_status_line(struct MPContext *mpctx, const char *line)
{
struct MPOpts *opts = mpctx->opts;
if (opts->slave_mode) {
- MP_MSG(mpctx, MSGL_STATUS, "%s\n", line);
+ mp_msg(mpctx->statusline, MSGL_STATUS, "%s\n", line);
} else if (erase_to_end_of_line) {
- MP_MSG(mpctx, MSGL_STATUS, "%s%s\r", line, erase_to_end_of_line);
+ mp_msg(mpctx->statusline, MSGL_STATUS, "%s%s\r", line, erase_to_end_of_line);
} else {
int pos = strlen(line);
int width = get_term_width() - pos;
- MP_MSG(mpctx, MSGL_STATUS, "%s%*s\r", line, width, "");
+ mp_msg(mpctx->statusline, MSGL_STATUS, "%s%*s\r", line, width, "");
}
}