diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-07-29 11:44:05 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-07-29 11:44:05 +0200 |
| commit | 09860271bb6d03b3937c08bffb4c672697f6d711 (patch) | |
| tree | f6bb9573b687ec7877a5412bf151af9d13676ee0 /src/lib/dcp_content.cc | |
| parent | 2d7ba63fdbe2c91a1ca22ffa5b511ec1a2420b29 (diff) | |
Recover information about closed caption tracks when loading DCPsv2.15.93
so that they can be displayed.
Diffstat (limited to 'src/lib/dcp_content.cc')
| -rw-r--r-- | src/lib/dcp_content.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc index ec6894428..00ffb390c 100644 --- a/src/lib/dcp_content.cc +++ b/src/lib/dcp_content.cc @@ -253,7 +253,11 @@ DCPContent::examine (shared_ptr<const Film> film, shared_ptr<Job> job) _name = examiner->name (); for (int i = 0; i < TEXT_COUNT; ++i) { for (int j = 0; j < examiner->text_count(static_cast<TextType>(i)); ++j) { - text.push_back (shared_ptr<TextContent>(new TextContent(this, static_cast<TextType>(i), static_cast<TextType>(i)))); + shared_ptr<TextContent> c(new TextContent(this, static_cast<TextType>(i), static_cast<TextType>(i))); + if (i == TEXT_CLOSED_CAPTION) { + c->set_dcp_track (examiner->dcp_text_track(j)); + } + text.push_back (c); } } texts = text.size (); |
