X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_ring_buffers.h;h=47fda01f7fd7b9c503a84d6cffc7c2dde60b15a3;hb=ff639b3cf30afcc097bfd21d39c8d15f466cadd6;hp=832837d9422a59fe1a2cbd063f953ab740dd4a30;hpb=dd9be86db6cde0afa5da0d1d1ac43b42e05dca26;p=dcpomatic.git diff --git a/src/lib/video_ring_buffers.h b/src/lib/video_ring_buffers.h index 832837d94..47fda01f7 100644 --- a/src/lib/video_ring_buffers.h +++ b/src/lib/video_ring_buffers.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2016-2020 Carl Hetherington + Copyright (C) 2016-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,10 +18,10 @@ */ + #include "dcpomatic_time.h" #include "player_video.h" #include "types.h" -#include #include #include @@ -30,9 +30,14 @@ class Film; class PlayerVideo; -class VideoRingBuffers : public boost::noncopyable +class VideoRingBuffers { public: + VideoRingBuffers () {} + + VideoRingBuffers (VideoRingBuffers const&) = delete; + VideoRingBuffers& operator= (VideoRingBuffers const&) = delete; + void put (std::shared_ptr frame, dcpomatic::DCPTime time); std::pair, dcpomatic::DCPTime> get (); @@ -46,5 +51,5 @@ public: private: mutable boost::mutex _mutex; - std::list, dcpomatic::DCPTime> > _data; + std::list, dcpomatic::DCPTime>> _data; };