diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-03-27 11:17:22 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-03-27 11:17:22 +0000 |
| commit | 33aa4abdc8702205005596618274d727ebca4424 (patch) | |
| tree | 4e8b0ea14665714204538c74c74b2ec5b630f99c /src/wx/text_panel.cc | |
| parent | 9153a8a53ada73b4b016e7bb6faf1c2ed99f011b (diff) | |
Hack to avoid empty tracks appearing in the DCP Track control.
Diffstat (limited to 'src/wx/text_panel.cc')
| -rw-r--r-- | src/wx/text_panel.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wx/text_panel.cc b/src/wx/text_panel.cc index b5adf551e..a9f2f91f1 100644 --- a/src/wx/text_panel.cc +++ b/src/wx/text_panel.cc @@ -255,7 +255,12 @@ TextPanel::update_dcp_tracks () { _dcp_track->Clear (); BOOST_FOREACH (DCPTextTrack i, _parent->film()->closed_caption_tracks()) { - _dcp_track->Append (std_to_wx(i.summary())); + /* XXX: don't display the "magic" track which has empty name and language; + this is a nasty hack (see also Film::closed_caption_tracks) + */ + if (!i.name.empty() || !i.language.empty()) { + _dcp_track->Append (std_to_wx(i.summary())); + } } if (_parent->film()->closed_caption_tracks().size() < 6) { |
