diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-10 18:18:45 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-09-10 23:21:02 +0200 |
| commit | 959034cec386965f41a781c3ae6929bf7b14318c (patch) | |
| tree | 2289318e5664393a6ff41f86eb4f0a9df27e6c8a /src/lib/player.h | |
| parent | bd9098f7fa9f8415da12ac0f08a1087c68f6baf6 (diff) | |
Use atomic for _dcp_decode_reduction.
Diffstat (limited to 'src/lib/player.h')
| -rw-r--r-- | src/lib/player.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/player.h b/src/lib/player.h index d586622c4..ce8b7cc5a 100644 --- a/src/lib/player.h +++ b/src/lib/player.h @@ -196,7 +196,7 @@ private: /** Time of the next audio that we will emit, or the time of the last accurate seek */ boost::optional<dcpomatic::DCPTime> _next_audio_time; - boost::optional<int> _dcp_decode_reduction; + boost::atomic<boost::optional<int>> _dcp_decode_reduction; typedef std::map<std::weak_ptr<Piece>, std::shared_ptr<PlayerVideo>, std::owner_less<std::weak_ptr<Piece>>> LastVideoMap; LastVideoMap _last_video; |
