swaroop: Disable play/stop/pause and slider during ad content.
[dcpomatic.git] / src / lib / dcp_examiner.h
index 0e0b3ef8347c4ae6c389f81ed708507e8c9179cd..f54f02c36c005f607de6b8b3720beac8b4a3f2df 100644 (file)
@@ -59,10 +59,6 @@ public:
                return _name;
        }
 
-       bool has_subtitles () const {
-               return _has_subtitles;
-       }
-
        bool encrypted () const {
                return _encrypted;
        }
@@ -87,6 +83,10 @@ public:
                return _audio_frame_rate.get_value_or (48000);
        }
 
+       bool has_text (TextType type) const {
+               return _has_text[type];
+       }
+
        bool kdm_valid () const {
                return _kdm_valid;
        }
@@ -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_subtitles;
+       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;
 };