summaryrefslogtreecommitdiff
path: root/src/lib/video_ring_buffers.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-12-01 11:32:11 +0100
committerCarl Hetherington <cth@carlh.net>2020-12-01 11:32:11 +0100
commit090cd7dabd2f975e493a9bbd22754ee578d6a1b2 (patch)
tree1d1e3165157d70102aef5ed8eee60292f4fd0c55 /src/lib/video_ring_buffers.cc
parent66b2dc980b68100c139d6cadfdcffa68b1a16069 (diff)
Add VideoRingBuffers::reset_metadata().
Diffstat (limited to 'src/lib/video_ring_buffers.cc')
-rw-r--r--src/lib/video_ring_buffers.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/video_ring_buffers.cc b/src/lib/video_ring_buffers.cc
index e0e1b052c..24d904e7e 100644
--- a/src/lib/video_ring_buffers.cc
+++ b/src/lib/video_ring_buffers.cc
@@ -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.
@@ -84,3 +84,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);
+ }
+}
+