From a36e03781c0bbfaae4a04f3b57db4df5040d31d0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 8 Feb 2013 21:38:34 +0100 Subject: 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. --- core/mplayer.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'core') diff --git a/core/mplayer.c b/core/mplayer.c index 5d63ef9f9b..65bd1f2f8e 100644 --- a/core/mplayer.c +++ b/core/mplayer.c @@ -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)); -- cgit v1.2.3