summaryrefslogtreecommitdiff
path: root/src/interop_subtitle_asset.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/interop_subtitle_asset.cc')
-rw-r--r--src/interop_subtitle_asset.cc4
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 ())));
}
}