summaryrefslogtreecommitdiff
path: root/src/lib/video_ring_buffers.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/video_ring_buffers.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/video_ring_buffers.h')
-rw-r--r--src/lib/video_ring_buffers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/video_ring_buffers.h b/src/lib/video_ring_buffers.h
index cf61b90cc..887a5dc2f 100644
--- a/src/lib/video_ring_buffers.h
+++ b/src/lib/video_ring_buffers.h
@@ -39,6 +39,8 @@ public:
bool empty () const;
boost::optional<DCPTime> earliest () const;
+ std::pair<size_t, std::string> memory_used () const;
+
private:
mutable boost::mutex _mutex;
std::list<std::pair<boost::shared_ptr<PlayerVideo>, DCPTime> > _data;