summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-09-10 00:43:59 +0200
committerCarl Hetherington <cth@carlh.net>2022-09-10 21:00:06 +0200
commitfea1b7402588644f107874a0102c8f3f428123f3 (patch)
tree428a657de9975e3960c3b969ce2f4ab4060657d5
parent4b102c1fdee4a68533415a759c6f47be33bf2626 (diff)
Some const-correctness for Player.
-rw-r--r--src/lib/player.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/player.h b/src/lib/player.h
index 694ee70b7..71b3cc464 100644
--- a/src/lib/player.h
+++ b/src/lib/player.h
@@ -163,9 +163,9 @@ private:
*/
mutable boost::mutex _mutex;
- std::shared_ptr<const Film> _film;
+ std::shared_ptr<const Film> const _film;
/** Playlist, or 0 if we are using the one from the _film */
- std::shared_ptr<const Playlist> _playlist;
+ std::shared_ptr<const Playlist> const _playlist;
/** > 0 if we are suspended (i.e. pass() and seek() do nothing) */
boost::atomic<int> _suspended;
@@ -186,7 +186,7 @@ private:
/** true if we should try to be fast rather than high quality */
bool _fast = false;
/** true if we should keep going in the face of `survivable' errors */
- bool _tolerant = false;
+ bool const _tolerant;
/** true if we should `play' (i.e output) referenced DCP data (e.g. for preview) */
bool _play_referenced = false;
@@ -230,7 +230,7 @@ private:
dcpomatic::DCPTime _playback_length;
/** Alignment for subtitle images that we create */
- Image::Alignment _subtitle_alignment = Image::Alignment::PADDED;
+ Image::Alignment const _subtitle_alignment = Image::Alignment::PADDED;
boost::signals2::scoped_connection _film_changed_connection;
boost::signals2::scoped_connection _playlist_change_connection;