summaryrefslogtreecommitdiffstats
path: root/player/osd.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-10-11 19:18:43 +0200
committerwm4 <wm4@nowhere>2019-10-11 19:18:43 +0200
commit1d25d7fe922a021caa62d245437371b7bf4e44b7 (patch)
tree4c2c8fb722beaa440352802bba1631d454437a68 /player/osd.c
parentc6c93499cbed839a624fdd279628488f16826616 (diff)
downloadmpv-1d25d7fe922a021caa62d245437371b7bf4e44b7.tar.bz2
mpv-1d25d7fe922a021caa62d245437371b7bf4e44b7.tar.xz
player: format low cache duration with more decimals
Diffstat (limited to 'player/osd.c')
-rw-r--r--player/osd.c2
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);
}