- dcp::SubtitleContent sc (path (0), false);
- _length = DCPTime::from_seconds (sc.latest_subtitle_out().to_seconds ());
+
+ shared_ptr<dcp::SubtitleContent> sc = load (path (0));
+
+ boost::mutex::scoped_lock lm (_mutex);
+
+ _subtitle_language = sc->language ();
+ _length = DCPTime::from_seconds (sc->latest_subtitle_out().to_seconds ());
+
+ BOOST_FOREACH (shared_ptr<dcp::LoadFontNode> i, sc->load_font_nodes ()) {
+ _fonts.push_back (shared_ptr<Font> (new Font (i->id)));
+ }