summaryrefslogtreecommitdiff
path: root/src/reader_factory.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-12-01 22:44:38 +0100
committerCarl Hetherington <cth@carlh.net>2022-12-01 23:19:07 +0100
commit3da3168c383b9dfa675f972f0802e180920d63c0 (patch)
tree7d196ce81955dbd70e6324f2b09744c557defb33 /src/reader_factory.cc
parent8ff50a18013d3c57d1058368146c979354016663 (diff)
Remove DCP subtitle support.libsub-bye-bye-dcp
This was only a thin wrapper around libdcp, used by videocon but not by DCP-o-matic. It seems very unlikely that anybody else will want it, and the dependency of libsub on libdcp causes hassle that will be gladly avoided.
Diffstat (limited to 'src/reader_factory.cc')
-rw-r--r--src/reader_factory.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/reader_factory.cc b/src/reader_factory.cc
index fb717ea..282f14b 100644
--- a/src/reader_factory.cc
+++ b/src/reader_factory.cc
@@ -20,10 +20,8 @@
#include "reader_factory.h"
#include "stl_binary_reader.h"
#include "stl_text_reader.h"
-#include "dcp_reader.h"
#include "subrip_reader.h"
#include "sub_assert.h"
-#include <libxml++/libxml++.h>
#include <boost/algorithm/string.hpp>
#include <fstream>
@@ -39,15 +37,6 @@ sub::reader_factory (boost::filesystem::path file_name)
string ext = file_name.extension().string();
transform (ext.begin(), ext.end(), ext.begin(), ::tolower);
- if (ext == ".xml") {
- return shared_ptr<Reader> (new DCPReader (file_name));
- }
-
- if (ext == ".mxf") {
- /* Assume this is some MXF-wrapped SMPTE subtitles */
- return shared_ptr<Reader> (new DCPReader (file_name));
- }
-
if (ext == ".stl") {
/* Check the start of the DFC */
ifstream f (file_name.string().c_str ());