diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-09 14:02:20 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-09 14:02:20 +0100 |
| commit | e4b8bed37b4fcfb932e2b899003f2a95df908ba0 (patch) | |
| tree | 6af8acd73fdfdaa0025dca758cc29e488c4ce8a4 /src/interop_subtitle_asset.cc | |
| parent | 2ac1dbfeaffa5166f104ef4a01fedc41f542cacf (diff) | |
Handle storing/recovery of fonts in SMPTE MXF files.
Diffstat (limited to 'src/interop_subtitle_asset.cc')
| -rw-r--r-- | src/interop_subtitle_asset.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interop_subtitle_asset.cc b/src/interop_subtitle_asset.cc index 9565b12d..5be4c53c 100644 --- a/src/interop_subtitle_asset.cc +++ b/src/interop_subtitle_asset.cc @@ -36,6 +36,7 @@ using std::cout; using std::cerr; using std::map; using boost::shared_ptr; +using boost::shared_array; using boost::optional; using boost::dynamic_pointer_cast; using namespace dcp; @@ -192,6 +193,7 @@ void InteropSubtitleAsset::add_font_assets (list<shared_ptr<Asset> >& assets) { for (map<string, FontData>::const_iterator i = _fonts.begin(); i != _fonts.end(); ++i) { - assets.push_back (shared_ptr<Font> (new Font (i->second.file))); + DCP_ASSERT (i->second.file); + assets.push_back (shared_ptr<Font> (new Font (i->second.file.get ()))); } } |
