Parse .ass files using the text subtitle code.
authorCarl Hetherington <cth@carlh.net>
Sat, 18 Jun 2016 22:53:02 +0000 (23:53 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 18 Jun 2016 22:53:02 +0000 (23:53 +0100)
src/lib/content_factory.cc

index 38112b968564e96ae6399af3575cd381986a5139..d3905e4e7c443a2d0c59bb06947f57b669c09f46 100644 (file)
@@ -164,7 +164,7 @@ content_factory (shared_ptr<const Film> film, boost::filesystem::path path)
 
                if (valid_image_file (path)) {
                        content.reset (new ImageContent (film, path));
-               } else if (ext == ".srt" || ext == ".ssa") {
+               } else if (ext == ".srt" || ext == ".ssa" || ext == ".ass") {
                        content.reset (new TextSubtitleContent (film, path));
                } else if (ext == ".xml") {
                        content.reset (new DCPSubtitleContent (film, path));