BOOST_FOREACH.
[dcpomatic.git] / src / lib / video_ring_buffers.cc
index e0e1b052c3f6832edbc3e424f583223b4df3b584..8c73aba25d636d67b621f582be6440d9c2c5b3e8 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2016-2017 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2016-2020 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -21,7 +21,6 @@
 #include "video_ring_buffers.h"
 #include "player_video.h"
 #include "compose.hpp"
-#include <boost/foreach.hpp>
 #include <list>
 #include <iostream>
 
@@ -30,7 +29,7 @@ using std::make_pair;
 using std::cout;
 using std::pair;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcpomatic;
 
@@ -84,3 +83,14 @@ VideoRingBuffers::memory_used () const
        }
        return make_pair(m, String::compose("%1 frames", _data.size()));
 }
+
+
+void
+VideoRingBuffers::reset_metadata (shared_ptr<const Film> film, dcp::Size player_video_container_size)
+{
+       boost::mutex::scoped_lock lm (_mutex);
+       for (list<pair<shared_ptr<PlayerVideo>, DCPTime> >::const_iterator i = _data.begin(); i != _data.end(); ++i) {
+               i->first->reset_metadata (film, player_video_container_size);
+       }
+}
+