From c7916079e06d985121842962b9736a6673e22dfe Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 19 Sep 2021 21:45:22 +0200 Subject: Fix failure to open v2.14.x documents with invalid or empty subtitle languages (#2085). --- src/lib/dcp_subtitle_content.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/dcp_subtitle_content.cc') diff --git a/src/lib/dcp_subtitle_content.cc b/src/lib/dcp_subtitle_content.cc index 858849ca3..3bae6e88f 100644 --- a/src/lib/dcp_subtitle_content.cc +++ b/src/lib/dcp_subtitle_content.cc @@ -48,7 +48,8 @@ DCPSubtitleContent::DCPSubtitleContent (cxml::ConstNodePtr node, int version) : Content (node) , _length (node->number_child ("Length")) { - text = TextContent::from_xml (this, node, version); + list notes; + text = TextContent::from_xml (this, node, version, notes); } void -- cgit v1.2.3