1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-30 07:18:17 +00:00

player: hack to fix --msgmodule --term-osd-bar

Basically a cheap hack to fix that the --msgmodule prefix will cause an
unwanted linebreak by making the line too long.

Suggested by Hamuko in github issue .

Fixes .
This commit is contained in:
wm4 2014-04-13 13:03:31 +02:00
parent 750de181d7
commit 62a483f18b

View File

@ -135,7 +135,7 @@ static void add_term_osd_bar(struct MPContext *mpctx, char **line, int width)
for (int n = 0; n < 5; n++)
parts[n] = bstr_split_utf8(chars, &chars);
saddf(line, "%.*s", BSTR_P(parts[0]));
saddf(line, "\r%.*s", BSTR_P(parts[0]));
for (int n = 0; n < pos; n++)
saddf(line, "%.*s", BSTR_P(parts[1]));
saddf(line, "%.*s", BSTR_P(parts[2]));