summaryrefslogtreecommitdiff
path: root/src/lib/decoder_factory.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-06 17:46:24 +0100
committerCarl Hetherington <cth@carlh.net>2024-12-26 17:20:25 +0100
commit54e2644ed4dcc4faf5135e60926cfdda14886fea (patch)
treeca1599fe32e3ace691dffcdb6ded45ad29baea59 /src/lib/decoder_factory.cc
parent1f077d2b791a059ccef4069dca07ead990bd568e (diff)
Support FCP XML files containing subtitles (#2909).
Diffstat (limited to 'src/lib/decoder_factory.cc')
-rw-r--r--src/lib/decoder_factory.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/decoder_factory.cc b/src/lib/decoder_factory.cc
index ea0eda83d..31156ab3f 100644
--- a/src/lib/decoder_factory.cc
+++ b/src/lib/decoder_factory.cc
@@ -25,6 +25,8 @@
#include "dcp_decoder.h"
#include "dcp_subtitle_content.h"
#include "dcp_subtitle_decoder.h"
+#include "fcpxml_content.h"
+#include "fcpxml_decoder.h"
#include "ffmpeg_content.h"
#include "ffmpeg_decoder.h"
#include "image_content.h"
@@ -92,5 +94,9 @@ decoder_factory (shared_ptr<const Film> film, shared_ptr<const Content> content,
return make_shared<AtmosMXFDecoder>(film, amc);
}
+ if (auto c = dynamic_pointer_cast<const FCPXMLContent>(content)) {
+ return make_shared<FCPXMLDecoder>(film, c);
+ }
+
return {};
}