path: root/demux/demux.h
diff options
authorwm4 <wm4@nowhere>2014-08-27 22:42:28 +0200
committerwm4 <wm4@nowhere>2014-08-27 23:12:47 +0200
commitc7208319d3406fa5f3980a1155ae9b854ab7a232 (patch)
tree2ff4900ba4c394e74f68f3152eefc26028c056b1 /demux/demux.h
parentdad90f616da5665e6e27a516f78c2a5fa66162c2 (diff)
player: better cache status on status line
The cache percentage was useless. It showed how much of the total stream cache was in use, but since the cache size is something huge and unrelated to the bitrate or network speed, the information content of the percentage was rather low. Replace this with printing the duration of the demuxer-cached data, and the size of the stream cache in KB. I'm not completely sure about the formatting; suggestions are welcome. Note that it's not easy to know how much playback time the stream cache covers, so it's always in bytes.
Diffstat (limited to 'demux/demux.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/demux/demux.h b/demux/demux.h
index d0f70c6f57..20e6b8a15e 100644
--- a/demux/demux.h
+++ b/demux/demux.h
@@ -60,6 +60,7 @@ enum demux_ctrl {
struct demux_ctrl_reader_state {
bool eof, underrun, idle;
double ts_range[2]; // start, end
+ double ts_duration;
struct demux_ctrl_stream_ctrl {