Allow content parts to not be preset in XML.
[dcpomatic.git] / src / lib / dcp_subtitle_content.cc
index a6beacb0d728beb21acc3350e4d0555defe2b9d5..0702237f371a39f618e2e2bc99b8df94712104a6 100644 (file)
@@ -45,7 +45,7 @@ DCPSubtitleContent::DCPSubtitleContent (shared_ptr<const Film> film, cxml::Const
        : Content (film, node)
        , _length (node->number_child<ContentTime::Type> ("Length"))
 {
-       subtitle.reset (new SubtitleContent (this, film, node, version));
+       subtitle = SubtitleContent::from_xml (this, film, node, version);
 }
 
 void