Emit no audio from DCPs if none is mapped
[dcpomatic.git] / src / lib / text_content.h
index 66bedecf51007c9e030cf3f01d3261ecc5eb5dfa..4d4bdc507e478043ca2111c2fa0507d812aaec8d 100644 (file)
@@ -76,7 +76,9 @@ public:
        std::string identifier () const;
        void take_settings_from (std::shared_ptr<const TextContent> c);
 
+       void clear_fonts ();
        void add_font (std::shared_ptr<dcpomatic::Font> font);
+       std::shared_ptr<dcpomatic::Font> get_font(std::string id) const;
 
        void set_use (bool);
        void set_burn (bool);
@@ -197,13 +199,14 @@ public:
                return _language_is_additional;
        }
 
-       static std::list<std::shared_ptr<TextContent>> from_xml (Content* parent, cxml::ConstNodePtr, int version, std::list<std::string>& notes);
+       static std::vector<std::shared_ptr<TextContent>> from_xml(Content* parent, cxml::ConstNodePtr, int version, std::list<std::string>& notes);
 
 private:
        friend struct ffmpeg_pts_offset_test;
 
        void font_changed ();
        void connect_to_fonts ();
+       std::shared_ptr<dcpomatic::Font> get_font_unlocked(std::string id) const;
 
        std::list<boost::signals2::connection> _font_connections;