From: Carl Hetherington Date: Tue, 24 Jul 2018 11:14:27 +0000 (+0100) Subject: Fix uninitialised variable. X-Git-Tag: v2.13.38~1 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=54e0e2ab9a48944004424f423397f8dc54aec8c8;p=dcpomatic.git Fix uninitialised variable. --- diff --git a/src/lib/player.cc b/src/lib/player.cc index 831d503f9..8b2ade1dc 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -90,6 +90,7 @@ Player::Player (shared_ptr film, shared_ptr playlist , _have_valid_pieces (false) , _ignore_video (false) , _ignore_text (false) + , _always_burn_open_subtitles (false) , _fast (false) , _play_referenced (false) , _audio_merger (_film->audio_frame_rate()) @@ -962,7 +963,7 @@ Player::subtitle_stop (weak_ptr wp, weak_ptr wc, Conte pair from = _active_texts[type].add_to (wc, dcp_to); - bool const always = type == TEXT_OPEN_SUBTITLE && _always_burn_open_subtitles; + bool const always = (type == TEXT_OPEN_SUBTITLE && _always_burn_open_subtitles); if (text->use() && !always && !text->burn()) { Text (from.first, type, DCPTimePeriod (from.second, dcp_to)); }