diff options
author | wm4 <wm4@nowhere> | 2016-03-30 11:40:13 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-03-30 11:40:13 +0200 |
commit | 3984d2acca22465f8cbe7276134c1be1963af4fb (patch) | |
tree | 498acf459c5e3be0b1bff8a71b74f507f857af31 /player | |
parent | 1107a070e4f2a37fe59552d3c82b08e7aa522e1f (diff) | |
download | mpv-3984d2acca22465f8cbe7276134c1be1963af4fb.tar.bz2 mpv-3984d2acca22465f8cbe7276134c1be1963af4fb.tar.xz |
player: hide cache in status line by default again
Commit 57506b27 accidentally broke this. The status (including the
usually always active demuxer cache) should be shown only if the stream
cache is actually enabled.
Diffstat (limited to 'player')
-rw-r--r-- | player/osd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/osd.c b/player/osd.c index 8c6d8a3af1..7da4a038bf 100644 --- a/player/osd.c +++ b/player/osd.c @@ -259,7 +259,7 @@ static void print_status(struct MPContext *mpctx) if (mpctx->demuxer) { struct stream_cache_info info = {0}; demux_stream_control(mpctx->demuxer, STREAM_CTRL_GET_CACHE_INFO, &info); - if (info.fill >= 0) { + if (info.size > 0) { saddf(&line, " Cache: "); struct demux_ctrl_reader_state s = {.ts_duration = -1}; |