Fix failure to open v2.14.x documents with invalid or empty subtitle languages (...
[dcpomatic.git] / src / lib / dcp_content.cc
index fa6ec383f8ccae10bde9e6990dda77345948fc5c..e454853a1c2bc592db72a8d16686b32a5c28c625 100644 (file)
@@ -96,7 +96,8 @@ DCPContent::DCPContent (cxml::ConstNodePtr node, int version)
 {
        video = VideoContent::from_xml (this, node, version);
        audio = AudioContent::from_xml (this, node, version);
-       text = TextContent::from_xml (this, node, version);
+       list<string> notes;
+       text = TextContent::from_xml (this, node, version, notes);
        atmos = AtmosContent::from_xml (this, node);
 
        for (int i = 0; i < static_cast<int>(TextType::COUNT); ++i) {