mirror of https://github.com/mpv-player/mpv
mplayer: remove seconds/centiseconds display from terminal status line
Doesn't have much of a purpose for normal playback. You can get milliseconds display with --osd-fractions. It's also possible to build a custom status line with --status-msg. This gives more space on the status line and, in my opinion, is a bit less annoying.
This commit is contained in:
parent
88d843f909
commit
a36e03781c
|
@ -1159,20 +1159,16 @@ static void print_status(struct MPContext *mpctx)
|
|||
saddf(line, width, "A");
|
||||
if (mpctx->sh_video)
|
||||
saddf(line, width, "V");
|
||||
saddf(line, width, ":");
|
||||
saddf(line, width, ": ");
|
||||
|
||||
// Playback position
|
||||
double cur = get_current_time(mpctx);
|
||||
saddf(line, width, " %.1f ", cur);
|
||||
saddf(line, width, "(");
|
||||
sadd_hhmmssff(line, width, cur, mpctx->opts.osd_fractions);
|
||||
saddf(line, width, ")");
|
||||
|
||||
double len = get_time_length(mpctx);
|
||||
if (len >= 0) {
|
||||
saddf(line, width, " / %.1f (", len);
|
||||
saddf(line, width, " / ");
|
||||
sadd_hhmmssff(line, width, len, mpctx->opts.osd_fractions);
|
||||
saddf(line, width, ")");
|
||||
}
|
||||
|
||||
sadd_percentage(line, width, get_percent_pos(mpctx));
|
||||
|
|
Loading…
Reference in New Issue