diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-24 12:14:27 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-24 12:14:27 +0100 |
| commit | 54e0e2ab9a48944004424f423397f8dc54aec8c8 (patch) | |
| tree | b76594b6f4382057ecf6d96415193fd35d377fb2 | |
| parent | 24dcab1d4d8d7a28a939c7c4d786197684f155f6 (diff) | |
Fix uninitialised variable.
| -rw-r--r-- | src/lib/player.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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<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)); } |
