Fix uninitialised variable.
authorCarl Hetherington <cth@carlh.net>
Tue, 24 Jul 2018 11:14:27 +0000 (12:14 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 24 Jul 2018 11:14:27 +0000 (12:14 +0100)
src/lib/player.cc

index 831d503f9e6824279a3f82aaadafe651b256823f..8b2ade1dc74b49510828695a80e274b1391b2282 100644 (file)
@@ -90,6 +90,7 @@ Player::Player (shared_ptr<const Film> film, shared_ptr<const Playlist> 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<Piece> wp, weak_ptr<const TextContent> wc, Conte
 
        pair<PlayerText, DCPTime> 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));
        }