diff options
author | wm4 <wm4@nowhere> | 2019-10-11 19:18:43 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-10-11 19:18:43 +0200 |
commit | 1d25d7fe922a021caa62d245437371b7bf4e44b7 (patch) | |
tree | 4c2c8fb722beaa440352802bba1631d454437a68 /player | |
parent | c6c93499cbed839a624fdd279628488f16826616 (diff) | |
download | mpv-1d25d7fe922a021caa62d245437371b7bf4e44b7.tar.bz2 mpv-1d25d7fe922a021caa62d245437371b7bf4e44b7.tar.xz |
player: format low cache duration with more decimals
Diffstat (limited to 'player')
-rw-r--r-- | player/osd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/player/osd.c b/player/osd.c index 2f1e5d5fb8..93d6302cc0 100644 --- a/player/osd.c +++ b/player/osd.c @@ -237,6 +237,8 @@ static char *get_term_status_msg(struct MPContext *mpctx) if (s.ts_duration < 0) { saddf(&line, "???"); + } else if (s.ts_duration < 10) { + saddf(&line, "%2.1fs", s.ts_duration); } else { saddf(&line, "%2ds", (int)s.ts_duration); } |