summaryrefslogtreecommitdiff
path: root/src/lib/video_ring_buffers.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-04 21:16:53 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-07 22:48:29 +0100
commitdd9be86db6cde0afa5da0d1d1ac43b42e05dca26 (patch)
treee56a3f82fb9e1c8602f265bea0d0688d8a018644 /src/lib/video_ring_buffers.h
parent0d35820cf50d2789752b8776683b26d04642518d (diff)
std::shared_ptr
Diffstat (limited to 'src/lib/video_ring_buffers.h')
-rw-r--r--src/lib/video_ring_buffers.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/video_ring_buffers.h b/src/lib/video_ring_buffers.h
index c7f789cb5..832837d94 100644
--- a/src/lib/video_ring_buffers.h
+++ b/src/lib/video_ring_buffers.h
@@ -23,7 +23,6 @@
#include "types.h"
#include <boost/noncopyable.hpp>
#include <boost/thread/mutex.hpp>
-#include <boost/shared_ptr.hpp>
#include <utility>
@@ -34,18 +33,18 @@ class PlayerVideo;
class VideoRingBuffers : public boost::noncopyable
{
public:
- void put (boost::shared_ptr<PlayerVideo> frame, dcpomatic::DCPTime time);
- std::pair<boost::shared_ptr<PlayerVideo>, dcpomatic::DCPTime> get ();
+ void put (std::shared_ptr<PlayerVideo> frame, dcpomatic::DCPTime time);
+ std::pair<std::shared_ptr<PlayerVideo>, dcpomatic::DCPTime> get ();
void clear ();
Frame size () const;
bool empty () const;
- void reset_metadata (boost::shared_ptr<const Film> film, dcp::Size player_video_container_size);
+ void reset_metadata (std::shared_ptr<const Film> film, dcp::Size player_video_container_size);
std::pair<size_t, std::string> memory_used () const;
private:
mutable boost::mutex _mutex;
- std::list<std::pair<boost::shared_ptr<PlayerVideo>, dcpomatic::DCPTime> > _data;
+ std::list<std::pair<std::shared_ptr<PlayerVideo>, dcpomatic::DCPTime> > _data;
};