1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-06 14:17:46 +00:00

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.
This commit is contained in:
wm4 2014-01-05 20:15:19 +01:00
parent 2123ca52c9
commit 5819f4b7c9

View File

@ -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);
}
}