summaryrefslogtreecommitdiff
path: root/src/lib/player_video.h
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.h
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.h')
-rw-r--r--src/lib/player_video.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/player_video.h b/src/lib/player_video.h
index 040145559..fe7ae384e 100644
--- a/src/lib/player_video.h
+++ b/src/lib/player_video.h
@@ -91,6 +91,8 @@ public:
bool same (boost::shared_ptr<const PlayerVideo> other) const;
+ size_t memory_used () const;
+
private:
boost::shared_ptr<const ImageProxy> _in;
Crop _crop;