diff options
author | wm4 <wm4@nowhere> | 2013-02-08 21:38:34 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-02-09 00:21:17 +0100 |
commit | a36e03781c0bbfaae4a04f3b57db4df5040d31d0 (patch) | |
tree | e9b831ec79396ed282b6d3a4a0d1df9c395aa6f7 /core | |
parent | 88d843f909f00ffd9c25016a9af58546fabbfd2c (diff) | |
download | mpv-a36e03781c0bbfaae4a04f3b57db4df5040d31d0.tar.bz2 mpv-a36e03781c0bbfaae4a04f3b57db4df5040d31d0.tar.xz |
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.
Diffstat (limited to 'core')
-rw-r--r-- | core/mplayer.c | 8 |
1 files changed, 2 insertions, 6 deletions
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)); |