summaryrefslogtreecommitdiff
path: root/src/lib/dcp_content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-03-29 01:19:44 +0000
committerCarl Hetherington <cth@carlh.net>2019-03-29 01:19:44 +0000
commit2e9744b7c79a0e56193b48bd0760a7b989f06079 (patch)
treebfaa9be8f61eb3afbb48959c695cd0392f65c942 /src/lib/dcp_content.cc
parent641a81bf7ad436853525d734c0d41a0f1365ecd3 (diff)
Don't crash when loading DCPs with multiple CCAP assets per reel (part of #1516).v2.13.140
Diffstat (limited to 'src/lib/dcp_content.cc')
-rw-r--r--src/lib/dcp_content.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc
index 4c4486a28..ef877a17f 100644
--- a/src/lib/dcp_content.cc
+++ b/src/lib/dcp_content.cc
@@ -225,7 +225,7 @@ DCPContent::examine (shared_ptr<const Film> film, shared_ptr<Job> job)
boost::mutex::scoped_lock lm (_mutex);
_name = examiner->name ();
for (int i = 0; i < TEXT_COUNT; ++i) {
- if (examiner->has_text(static_cast<TextType>(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))));
}
}