summaryrefslogtreecommitdiff
path: root/src/lib/dcp_examiner.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-07-22 00:41:03 +0100
committerCarl Hetherington <cth@carlh.net>2018-07-22 00:41:03 +0100
commitdea824f6ff41384a5e17e23de5434cf84eccff29 (patch)
treea40207882d506417cb5f456135b9ba4394535d00 /src/lib/dcp_examiner.h
parent9cbe57dda759fccfa9dec8a0820114d7d8583a36 (diff)
Display only required tabs, including subs / ccap.
Diffstat (limited to 'src/lib/dcp_examiner.h')
-rw-r--r--src/lib/dcp_examiner.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/dcp_examiner.h b/src/lib/dcp_examiner.h
index 0d55d4643..16385e07a 100644
--- a/src/lib/dcp_examiner.h
+++ b/src/lib/dcp_examiner.h
@@ -59,10 +59,6 @@ public:
return _name;
}
- int captions () const {
- return _captions;
- }
-
bool encrypted () const {
return _encrypted;
}
@@ -87,6 +83,10 @@ public:
return _audio_frame_rate.get_value_or (48000);
}
+ bool has_caption (CaptionType type) const {
+ return _has_caption[type];
+ }
+
bool kdm_valid () const {
return _kdm_valid;
}
@@ -119,7 +119,7 @@ private:
bool _has_video;
/** true if this DCP has audio content (but false if it has unresolved references to audio content) */
bool _has_audio;
- int _captions;
+ bool _has_caption[CAPTION_COUNT];
bool _encrypted;
bool _needs_assets;
bool _kdm_valid;