diff options
Diffstat (limited to 'src/interop_subtitle_asset.cc')
| -rw-r--r-- | src/interop_subtitle_asset.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interop_subtitle_asset.cc b/src/interop_subtitle_asset.cc index b0b94995..24b4cd00 100644 --- a/src/interop_subtitle_asset.cc +++ b/src/interop_subtitle_asset.cc @@ -204,8 +204,8 @@ InteropSubtitleAsset::resolve_fonts (list<shared_ptr<Asset> > assets) } BOOST_FOREACH (shared_ptr<InteropLoadFontNode> j, _load_font_nodes) { - if (j->uri == font->file().leaf().string ()) { - _fonts.push_back (Font (j->id, i->id(), font->file ())); + if (font->file() && j->uri == font->file()->leaf().string ()) { + _fonts.push_back (Font (j->id, i->id(), font->file().get())); } } } |
