Fix failure to open v2.14.x documents with invalid or empty subtitle languages (...
[dcpomatic.git] / src / lib / ffmpeg_content.cc
index 516962936238824775970f5796dc97c10ca6f62e..9017ad605dd9cb021e10e46bfcff307cc34c3f46 100644 (file)
@@ -92,7 +92,7 @@ FFmpegContent::FFmpegContent (cxml::ConstNodePtr node, int version, list<string>
 {
        video = VideoContent::from_xml (this, node, version);
        audio = AudioContent::from_xml (this, node, version);
-       text = TextContent::from_xml (this, node, version);
+       text = TextContent::from_xml (this, node, version, notes);
 
        for (auto i: node->node_children("SubtitleStream")) {
                _subtitle_streams.push_back (make_shared<FFmpegSubtitleStream>(i, version));