Enforce minimum reel length when using REELTYPE_BY_LENGTH.
[dcpomatic.git] / src / lib / video_ring_buffers.cc
index 2fc39d53c663330794a263a8728ffa782a7888b9..bfec507ea4f84a5b22e82271e5966e33e9771e2a 100644 (file)
@@ -32,6 +32,7 @@ using std::pair;
 using std::string;
 using boost::shared_ptr;
 using boost::optional;
+using namespace dcpomatic;
 
 void
 VideoRingBuffers::put (shared_ptr<PlayerVideo> frame, DCPTime time)
@@ -73,17 +74,6 @@ VideoRingBuffers::clear ()
        _data.clear ();
 }
 
-optional<DCPTime>
-VideoRingBuffers::earliest () const
-{
-       boost::mutex::scoped_lock lm (_mutex);
-       if (_data.empty ()) {
-               return optional<DCPTime> ();
-       }
-
-       return _data.front().second;
-}
-
 pair<size_t, string>
 VideoRingBuffers::memory_used () const
 {