From 5ce8acbca3fbf0cbfe6f0250e9baf7aa5494d6b4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 17 Feb 2013 20:27:57 +0100 Subject: osd: show cache state on the playback progression display by default This affects the "show_progress" command, by defualt on the 'P' key. If there are complaints, I'll probably remove it again. (It looks relatively annoying, but it also valueable information... sort of.) --- core/mplayer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core') diff --git a/core/mplayer.c b/core/mplayer.c index 67b380bcf7..779fe34d2f 100644 --- a/core/mplayer.c +++ b/core/mplayer.c @@ -1448,6 +1448,9 @@ static void sadd_osd_status(char **buffer, struct MPContext *mpctx, bool full) saddf(buffer, " / "); sadd_hhmmssff(buffer, get_time_length(mpctx), fractions); sadd_percentage(buffer, get_percent_pos(mpctx)); + int cache = mp_get_cache_percent(mpctx); + if (cache >= 0) + saddf(buffer, " Cache: %d%%", cache); } } } -- cgit v1.2.3