diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-21 15:16:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-21 15:16:18 +0100 |
| commit | cbd4450197a083bf58bda510e626f73ba583cb66 (patch) | |
| tree | 2be308772512539570beab36beab02bde72d6d4b /src/lib/caption_content.h | |
| parent | 1013175d5f6adfa0e6a7442e4c9aebb893787748 (diff) | |
Basics of multiple captions per content so that DCPContent can
hold subs and closed captions.
Diffstat (limited to 'src/lib/caption_content.h')
| -rw-r--r-- | src/lib/caption_content.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/caption_content.h b/src/lib/caption_content.h index 297289f18..4152dc533 100644 --- a/src/lib/caption_content.h +++ b/src/lib/caption_content.h @@ -167,7 +167,12 @@ public: return _type; } - static boost::shared_ptr<CaptionContent> from_xml (Content* parent, cxml::ConstNodePtr, int version); + CaptionType original_type () const { + boost::mutex::scoped_lock lm (_mutex); + return _original_type; + } + + static std::list<boost::shared_ptr<CaptionContent> > from_xml (Content* parent, cxml::ConstNodePtr, int version); protected: /** subtitle language (e.g. "German") or empty if it is not known */ @@ -205,7 +210,12 @@ private: boost::optional<ContentTime> _fade_in; boost::optional<ContentTime> _fade_out; int _outline_width; + /** what these captions will be used for in the output DCP (not necessarily what + * they were originally). + */ CaptionType _type; + /** the original type of these captions in their content */ + CaptionType _original_type; }; #endif |
