projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b6b01e
)
Add missing lock.
author
Carl Hetherington
<cth@carlh.net>
Tue, 1 Dec 2020 10:24:41 +0000
(11:24 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 1 Dec 2020 10:24:41 +0000
(11:24 +0100)
src/lib/video_ring_buffers.cc
patch
|
blob
|
history
diff --git
a/src/lib/video_ring_buffers.cc
b/src/lib/video_ring_buffers.cc
index bfec507ea4f84a5b22e82271e5966e33e9771e2a..e0e1b052c3f6832edbc3e424f583223b4df3b584 100644
(file)
--- a/
src/lib/video_ring_buffers.cc
+++ b/
src/lib/video_ring_buffers.cc
@@
-77,6
+77,7
@@
VideoRingBuffers::clear ()
pair<size_t, string>
VideoRingBuffers::memory_used () const
{
+ boost::mutex::scoped_lock lm (_mutex);
size_t m = 0;
for (list<pair<shared_ptr<PlayerVideo>, DCPTime> >::const_iterator i = _data.begin(); i != _data.end(); ++i) {
m += i->first->memory_used();