Re-analyse audio when DCP channel count changes (#1189).
[dcpomatic.git] / src / lib / dcp_examiner.h
index 16385e07a66662149e27e39653938f32136cab97..f54f02c36c005f607de6b8b3720beac8b4a3f2df 100644 (file)
@@ -83,8 +83,8 @@ public:
                return _audio_frame_rate.get_value_or (48000);
        }
 
-       bool has_caption (CaptionType type) const {
-               return _has_caption[type];
+       bool has_text (TextType type) const {
+               return _has_text[type];
        }
 
        bool kdm_valid () const {
@@ -99,6 +99,10 @@ public:
                return _three_d;
        }
 
+       dcp::ContentKind content_kind () const {
+               return _content_kind;
+       }
+
        std::string cpl () const {
                return _cpl;
        }
@@ -119,12 +123,13 @@ private:
        bool _has_video;
        /** true if this DCP has audio content (but false if it has unresolved references to audio content) */
        bool _has_audio;
-       bool _has_caption[CAPTION_COUNT];
+       bool _has_text[TEXT_COUNT];
        bool _encrypted;
        bool _needs_assets;
        bool _kdm_valid;
        boost::optional<dcp::Standard> _standard;
        bool _three_d;
+       dcp::ContentKind _content_kind;
        std::string _cpl;
        std::list<int64_t> _reel_lengths;
 };