summaryrefslogtreecommitdiff
path: root/src/lib/content_factory.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-09-19 21:45:22 +0200
committerCarl Hetherington <cth@carlh.net>2021-09-19 21:45:22 +0200
commitc7916079e06d985121842962b9736a6673e22dfe (patch)
tree05720c8df69b8a8a27f69cef7152ff24d242cfff /src/lib/content_factory.cc
parentc269ebfdae53a2f5c5e9acc6f6588ebb47eeac9d (diff)
Fix failure to open v2.14.x documents with invalid or empty subtitle languages (#2085).
Diffstat (limited to 'src/lib/content_factory.cc')
-rw-r--r--src/lib/content_factory.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/content_factory.cc b/src/lib/content_factory.cc
index 9f88caf46..b64c1b9a3 100644
--- a/src/lib/content_factory.cc
+++ b/src/lib/content_factory.cc
@@ -88,7 +88,7 @@ content_factory (cxml::ConstNodePtr node, int version, list<string>& notes)
);
} else if (type == "SubRip" || type == "TextSubtitle") {
- content.reset (new StringTextFileContent(node, version));
+ content = make_shared<StringTextFileContent>(node, version, notes);
} else if (type == "DCP") {
content = make_shared<DCPContent>(node, version);
} else if (type == "DCPSubtitle") {