Fix warning introduced a couple of commits ago.
[dcpomatic.git] / src / lib / content_factory.cc
index 9f88caf468a1c0b475803ce1032a557a2cb7d2f3..7bcc45503bc0dbc1997e5926c77e0ed5dd82b25e 100644 (file)
@@ -66,9 +66,6 @@ content_factory (cxml::ConstNodePtr node, int version, list<string>& notes)
        std::shared_ptr<Content> content;
 
        if (type == "FFmpeg") {
-               /* SndfileContent is now handled by the FFmpeg code rather than by
-                  separate libsndfile-based code.
-               */
                content = make_shared<FFmpegContent>(node, version, notes);
        } else if (type == "Image") {
                content = make_shared<ImageContent>(node, version);
@@ -88,7 +85,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") {