- subtitle.reset (
- new SubtitleDecoder (
- this,
- content->subtitle,
- log,
- bind (&DCPSubtitleDecoder::image_subtitles_during, this, _1, _2),
- bind (&DCPSubtitleDecoder::text_subtitles_during, this, _1, _2)
- )
- );
-
- shared_ptr<dcp::SubtitleAsset> c (load (content->path (0)));
- _subtitles = c->subtitles ();
+ /* Load the XML or MXF file */
+ auto const asset = load (content->path(0));
+ asset->fix_empty_font_ids ();
+ _subtitles = asset->subtitles ();