summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-08-26 12:28:36 +0200
committerwm4 <wm4@nowhere>2016-08-26 13:33:38 +0200
commitb636b1905822272bdde10ebe5d997396751892bf (patch)
treeb129425baa2ab10ec87edb3919aad327edebda00 /demux
parentcb9b60ef19e1c37418803feae3fdb7667007b20b (diff)
downloadmpv-b636b1905822272bdde10ebe5d997396751892bf.tar.bz2
mpv-b636b1905822272bdde10ebe5d997396751892bf.tar.xz
cache: don't use a backbuffer if the cache is as large as the file
It's just wasted memory. One corner case is when a file grows during playback, but this is rare and usually happens on-disk only. The cache size was generally limited before this change already, so no reason to care. As an unrelated change, move the cache size info to the resize_cache() function. There's really no reason not to do this, and it's slightly more informative if the user changes the cache size at runtime.
Diffstat (limited to 'demux')
0 files changed, 0 insertions, 0 deletions