Basics of multiple captions per content so that DCPContent can
[dcpomatic.git] / src / lib / active_captions.h
index 28ddcad52c5939867be6cda3fad77b282073e8f7..10b0b5da93cb8399779eba2257cd0d55a57c6498 100644 (file)
@@ -39,9 +39,9 @@ public:
        std::list<PlayerCaption> get_burnt (DCPTimePeriod period, bool always_burn_captions) const;
        void clear_before (DCPTime time);
        void clear ();
-       void add_from (boost::weak_ptr<CaptionContent> content, PlayerCaption ps, DCPTime from);
-       std::pair<PlayerCaption, DCPTime> add_to (boost::weak_ptr<CaptionContent> content, DCPTime to);
-       bool have (boost::weak_ptr<CaptionContent> content) const;
+       void add_from (boost::weak_ptr<const CaptionContent> content, PlayerCaption ps, DCPTime from);
+       std::pair<PlayerCaption, DCPTime> add_to (boost::weak_ptr<const CaptionContent> content, DCPTime to);
+       bool have (boost::weak_ptr<const CaptionContent> content) const;
 
 private:
        class Period
@@ -59,7 +59,7 @@ private:
                boost::optional<DCPTime> to;
        };
 
-       typedef std::map<boost::weak_ptr<CaptionContent>, std::list<Period> > Map;
+       typedef std::map<boost::weak_ptr<const CaptionContent>, std::list<Period> > Map;
 
        Map _data;
 };