From: Carl Hetherington Date: Fri, 9 Sep 2022 22:43:59 +0000 (+0200) Subject: Some const-correctness for Player. X-Git-Tag: v2.16.25~1^2~16 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=fea1b7402588644f107874a0102c8f3f428123f3 Some const-correctness for Player. --- 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 _film; + std::shared_ptr const _film; /** Playlist, or 0 if we are using the one from the _film */ - std::shared_ptr _playlist; + std::shared_ptr const _playlist; /** > 0 if we are suspended (i.e. pass() and seek() do nothing) */ boost::atomic _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;