From fea1b7402588644f107874a0102c8f3f428123f3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 10 Sep 2022 00:43:59 +0200 Subject: [PATCH] Some const-correctness for Player. --- src/lib/player.h | 8 ++++---- 1 file 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 _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; -- 2.30.2