X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcontent_factory.cc;h=167b3f4e929cbceffe29507ebaed609d0d5af5e7;hb=507a389e9c5f84ec1d51e7566e38fbf42f658537;hp=4e8880ffe2645ebe91d479264f225adfbc0d4c71;hpb=491176352b80bea000564e6662738722185be721;p=dcpomatic.git diff --git a/src/lib/content_factory.cc b/src/lib/content_factory.cc index 4e8880ffe..167b3f4e9 100644 --- a/src/lib/content_factory.cc +++ b/src/lib/content_factory.cc @@ -26,7 +26,7 @@ #include "audio_content.h" #include "image_content.h" #include "atmos_mxf_content.h" -#include "plain_text_content.h" +#include "plain_text_file_content.h" #include "dcp_content.h" #include "dcp_text_content.h" #include "util.h" @@ -88,7 +88,7 @@ content_factory (shared_ptr film, cxml::NodePtr node, int version, l ); } else if (type == "SubRip" || type == "TextSubtitle") { - content.reset (new PlainTextContent (film, node, version)); + content.reset (new PlainTextFileContent (film, node, version)); } else if (type == "DCP") { content.reset (new DCPContent (film, node, version)); } else if (type == "DCPSubtitle") { @@ -210,7 +210,7 @@ content_factory (shared_ptr film, boost::filesystem::path path) if (valid_image_file (path)) { single.reset (new ImageContent (film, path)); } else if (ext == ".srt" || ext == ".ssa" || ext == ".ass") { - single.reset (new PlainTextContent (film, path)); + single.reset (new PlainTextFileContent (film, path)); } else if (ext == ".xml") { cxml::Document doc; doc.read_file (path);