summaryrefslogtreecommitdiff
path: root/src/lib/player_video.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-12-29 22:51:50 +0000
committerCarl Hetherington <cth@carlh.net>2017-12-29 22:51:50 +0000
commita5ea5c0d2637dd41e3d356cb62cac75b8cadf8ce (patch)
tree45ed553eeaf52a58dea79f66ab6345df1c1657d0 /src/lib/player_video.cc
parent1701be8b9173c675169b5739fbd94f5e6f8d07d1 (diff)
Add basic memory-used stuff for butler and reduce minimum audio
readahead quite a bit. This in turn reduces the maximum butler memory usage as it will keep getting audio (and hence video) until the minimum audio readahead is hit.
Diffstat (limited to 'src/lib/player_video.cc')
-rw-r--r--src/lib/player_video.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/player_video.cc b/src/lib/player_video.cc
index 14291fc35..d3f09947e 100644
--- a/src/lib/player_video.cc
+++ b/src/lib/player_video.cc
@@ -252,3 +252,9 @@ PlayerVideo::prepare ()
{
_in->prepare (_inter_size);
}
+
+size_t
+PlayerVideo::memory_used () const
+{
+ return _in->memory_used();
+}