Stop empty Font IDs in imported DCP subtitles making it into the
[dcpomatic.git] / src / lib / dcp_subtitle_content.cc
index 81e26cf7cb6909c482d5f1c4fba6c24c76ae6be5..f8d12d4e4a4c1130c932846aca7bbb40d0f6a591 100644 (file)
@@ -77,6 +77,8 @@ DCPSubtitleContent::examine (shared_ptr<const Film> film, shared_ptr<Job> job)
 
        _length = ContentTime::from_seconds (sc->latest_subtitle_out().as_seconds ());
 
+       sc->fix_empty_font_ids ();
+
        BOOST_FOREACH (shared_ptr<dcp::LoadFontNode> i, sc->load_font_nodes ()) {
                only_text()->add_font (shared_ptr<Font> (new Font (i->id)));
        }