diff options
author | wm4 <wm4@nowhere> | 2013-02-17 20:27:57 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-02-17 21:06:28 +0100 |
commit | 5ce8acbca3fbf0cbfe6f0250e9baf7aa5494d6b4 (patch) | |
tree | 3de52d1e68fbf8a959abb9854311733698176654 | |
parent | 8a60122f80af3eb4a5b1110f5377abe6c7137d90 (diff) | |
download | mpv-5ce8acbca3fbf0cbfe6f0250e9baf7aa5494d6b4.tar.bz2 mpv-5ce8acbca3fbf0cbfe6f0250e9baf7aa5494d6b4.tar.xz |
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.)
-rw-r--r-- | core/mplayer.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } } } |