summaryrefslogtreecommitdiff
path: root/src/lib/dcp_examiner.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-06-28 23:56:22 +0200
committerCarl Hetherington <cth@carlh.net>2024-06-28 23:56:26 +0200
commit1c10ba0bbe5d3f476cfb5a65191774b69670616d (patch)
tree4c3b22a8a0fd12cd5bdcbc3a892462be0b21ed5d /src/lib/dcp_examiner.h
parent8b45384a7c9162d30309345ae863b4cab86aeda1 (diff)
Diffstat (limited to 'src/lib/dcp_examiner.h')
-rw-r--r--src/lib/dcp_examiner.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/dcp_examiner.h b/src/lib/dcp_examiner.h
index 28b59ee2f..dcb4d4a9e 100644
--- a/src/lib/dcp_examiner.h
+++ b/src/lib/dcp_examiner.h
@@ -117,6 +117,10 @@ public:
return _open_subtitle_language;
}
+ boost::optional<dcp::LanguageTag> open_caption_language() const {
+ return _open_caption_language;
+ }
+
DCPTextTrack dcp_text_track (int i) const {
DCPOMATIC_ASSERT (i >= 0 && i < static_cast<int>(_dcp_text_tracks.size()));
return _dcp_text_tracks[i];
@@ -198,7 +202,8 @@ private:
/** number of different assets of each type (OCAP/CCAP) */
EnumIndexedVector<int, TextType> _text_count;
boost::optional<dcp::LanguageTag> _open_subtitle_language;
- /** the DCPTextTracks for each of our CCAPs */
+ boost::optional<dcp::LanguageTag> _open_caption_language;
+ /** the DCPTextTracks for each of our closed captions/subtitles */
std::vector<DCPTextTrack> _dcp_text_tracks;
bool _encrypted = false;
bool _needs_assets = false;