X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_ring_buffers.h;h=ba1b2162f952218feccb8ee1c30b9c1d033d7a96;hb=c4403784febdbdd42e9c32e67fadb147f11fe566;hp=cf61b90cc905c405d1a9c11b0dcac26f020479f9;hpb=90c782a16c26fa8bfded51cad2bc7bbc14d8f986;p=dcpomatic.git diff --git a/src/lib/video_ring_buffers.h b/src/lib/video_ring_buffers.h index cf61b90cc..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 earliest () const; + + std::pair memory_used () const; private: mutable boost::mutex _mutex; - std::list, DCPTime> > _data; + std::list, dcpomatic::DCPTime> > _data; };