diff options
Diffstat (limited to 'src/lib/dcp_examiner.cc')
| -rw-r--r-- | src/lib/dcp_examiner.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/dcp_examiner.cc b/src/lib/dcp_examiner.cc index 8ce4aee00..6b4f854f8 100644 --- a/src/lib/dcp_examiner.cc +++ b/src/lib/dcp_examiner.cc @@ -58,7 +58,6 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content) , _audio_length (0) , _has_video (false) , _has_audio (false) - , _captions (0) , _encrypted (false) , _needs_assets (false) , _kdm_valid (false) @@ -66,6 +65,10 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content) { shared_ptr<dcp::CPL> cpl; + for (int i = 0; i < CAPTION_COUNT; ++i) { + _has_caption[i] = false; + } + if (content->cpl ()) { /* Use the CPL that the content was using before */ BOOST_FOREACH (shared_ptr<dcp::CPL> i, cpls()) { @@ -166,7 +169,7 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content) return; } - ++_captions; + _has_caption[CAPTION_OPEN] = true; } if (i->closed_caption ()) { @@ -176,7 +179,7 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content) return; } - ++_captions; + _has_caption[CAPTION_CLOSED] = true; } if (i->main_picture()) { |
