X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_ring_buffers.h;h=ba1b2162f952218feccb8ee1c30b9c1d033d7a96;hb=95c48153421b1a6e0d7ca6cf5e67cd7623c03dc7;hp=f728247fe8aa5213ec4fd72a1b2729922cbff0ce;hpb=4f9cb03792e85cbb5b4d554ab8ec0a3275fa7524;p=dcpomatic.git diff --git a/src/lib/video_ring_buffers.h b/src/lib/video_ring_buffers.h index f728247fe..ba1b2162f 100644 --- a/src/lib/video_ring_buffers.h +++ b/src/lib/video_ring_buffers.h @@ -31,15 +31,16 @@ class PlayerVideo; class VideoRingBuffers : public boost::noncopyable { public: - void put (boost::shared_ptr frame, DCPTime time); - std::pair, DCPTime> get (); + void put (boost::shared_ptr frame, dcpomatic::DCPTime time); + std::pair, dcpomatic::DCPTime> get (); void clear (); Frame size () const; + bool empty () const; - boost::optional latest () const; + std::pair memory_used () const; private: mutable boost::mutex _mutex; - std::list, DCPTime> > _data; + std::list, dcpomatic::DCPTime> > _data; };