diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-08-28 23:34:56 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-08-29 11:58:06 +0100 |
| commit | 1db0293ad36605da9ca8daa8736ef581f4f6a34e (patch) | |
| tree | fb613032d7f8a1712cf10f99ebbf6215e4145c5a /src/wx/closed_captions_dialog.cc | |
| parent | ec97893127a2d59871d92c9e658b6b1ab3100b40 (diff) | |
Basics of splitting CCAP streams into different assets.
Diffstat (limited to 'src/wx/closed_captions_dialog.cc')
| -rw-r--r-- | src/wx/closed_captions_dialog.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wx/closed_captions_dialog.cc b/src/wx/closed_captions_dialog.cc index 3f444f9a4..b81414bed 100644 --- a/src/wx/closed_captions_dialog.cc +++ b/src/wx/closed_captions_dialog.cc @@ -104,18 +104,18 @@ private: void ClosedCaptionsDialog::update (DCPTime time) { - if (_current_in_lines && _current->second.to > time) { + if (_current_in_lines && _current->period.to > time) { /* Current one is fine */ return; } - if (_current && _current->second.to < time) { + if (_current && _current->period.to < time) { /* Current one has finished; clear out */ for (int j = 0; j < CLOSED_CAPTION_LINES; ++j) { _lines[j] = ""; } Refresh (); - _current = optional<pair<PlayerText, DCPTimePeriod> >(); + _current = optional<TextRingBuffers::Data>(); } if (!_current) { @@ -126,10 +126,10 @@ ClosedCaptionsDialog::update (DCPTime time) _current_in_lines = false; } - if (_current && _current->second.contains(time)) { + if (_current && _current->period.contains(time)) { /* We need to set this new one up */ - list<StringText> to_show = _current->first.string; + list<StringText> to_show = _current->text.string; for (int j = 0; j < CLOSED_CAPTION_LINES; ++j) { _lines[j] = ""; @@ -153,7 +153,7 @@ ClosedCaptionsDialog::update (DCPTime time) void ClosedCaptionsDialog::clear () { - _current = optional<pair<PlayerText, DCPTimePeriod> >(); + _current = optional<TextRingBuffers::Data>(); _current_in_lines = false; Refresh (); } |
