diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-12-14 22:44:23 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-12-14 22:44:23 +0000 |
| commit | 861117816d557cd048d56b26f8903ac26a94b395 (patch) | |
| tree | 269649a3b7e3ed2f3f6dedd46e167921da388958 /src/dcp.cc | |
| parent | e58cec97a15d1d5dd198dfb145e1d7daf6be9641 (diff) | |
Switch subtitle string font specs to be the font ID; split SubtitleContent into Interop and SMPTE.
Diffstat (limited to 'src/dcp.cc')
| -rw-r--r-- | src/dcp.cc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -25,7 +25,8 @@ #include "dcp.h" #include "sound_mxf.h" #include "picture_mxf.h" -#include "subtitle_content.h" +#include "interop_subtitle_content.h" +#include "smpte_subtitle_content.h" #include "mono_picture_mxf.h" #include "stereo_picture_mxf.h" #include "util.h" @@ -132,7 +133,7 @@ DCP::read (bool keep_going, ReadErrors* errors) if (root == "CompositionPlaylist") { _assets.push_back (shared_ptr<CPL> (new CPL (path))); } else if (root == "DCSubtitle") { - _assets.push_back (shared_ptr<SubtitleContent> (new SubtitleContent (path, false))); + _assets.push_back (shared_ptr<InteropSubtitleContent> (new InteropSubtitleContent (path))); } } else if (boost::algorithm::ends_with (path.string(), ".mxf")) { ASDCP::EssenceType_t type; @@ -154,7 +155,7 @@ DCP::read (bool keep_going, ReadErrors* errors) _assets.push_back (shared_ptr<StereoPictureMXF> (new StereoPictureMXF (path))); break; case ASDCP::ESS_TIMED_TEXT: - _assets.push_back (shared_ptr<SubtitleContent> (new SubtitleContent (path, true))); + _assets.push_back (shared_ptr<SMPTESubtitleContent> (new SMPTESubtitleContent (path))); break; default: throw DCPReadError ("Unknown MXF essence type"); |
