diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-10 17:52:20 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-09-10 23:20:59 +0200 |
| commit | bd9098f7fa9f8415da12ac0f08a1087c68f6baf6 (patch) | |
| tree | 59d761ab36172237fb4ee25e4a2832aa8e135e9b /src/lib/player.h | |
| parent | 167b5edb8a1760a8532b2973cd7cca70333249f1 (diff) | |
Use atomic for _video_container_size.
Diffstat (limited to 'src/lib/player.h')
| -rw-r--r-- | src/lib/player.h | 3 |
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 */ |
