diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-22 00:41:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-22 00:41:03 +0100 |
| commit | dea824f6ff41384a5e17e23de5434cf84eccff29 (patch) | |
| tree | a40207882d506417cb5f456135b9ba4394535d00 /src/lib/dcp_examiner.cc | |
| parent | 9cbe57dda759fccfa9dec8a0820114d7d8583a36 (diff) | |
Display only required tabs, including subs / ccap.
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()) { |
