summaryrefslogtreecommitdiff
path: root/src/lib/player.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-09-10 17:52:20 +0200
committerCarl Hetherington <cth@carlh.net>2022-09-10 23:20:59 +0200
commitbd9098f7fa9f8415da12ac0f08a1087c68f6baf6 (patch)
tree59d761ab36172237fb4ee25e4a2832aa8e135e9b /src/lib/player.h
parent167b5edb8a1760a8532b2973cd7cca70333249f1 (diff)
Use atomic for _video_container_size.
Diffstat (limited to 'src/lib/player.h')
-rw-r--r--src/lib/player.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/player.h b/src/lib/player.h
index 511a579a0..d586622c4 100644
--- a/src/lib/player.h
+++ b/src/lib/player.h
@@ -83,7 +83,6 @@ public:
std::vector<std::shared_ptr<dcpomatic::Font>> get_subtitle_fonts ();
std::list<ReferencedReelAsset> get_reel_assets ();
dcp::Size video_container_size () const {
- boost::mutex::scoped_lock lm (_mutex);
return _video_container_size;
}
@@ -174,7 +173,7 @@ private:
/** Size of the image we are rendering to; this may be the DCP frame size, or
* the size of preview in a window.
*/
- dcp::Size _video_container_size;
+ boost::atomic<dcp::Size> _video_container_size;
std::shared_ptr<Image> _black_image;
/** true if the player should ignore all video; i.e. never produce any */