diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-05-08 22:44:50 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-05-08 22:44:50 +0200 |
| commit | 1a1ad378a86e4546c746ac5b89377f50d8580c15 (patch) | |
| tree | e3f3972f10729deec69ee3634dba6cbad06289ed /src/interop_subtitle_asset.cc | |
| parent | 7fe06c648aa6e0262dd2d053c93e604de8963342 (diff) | |
Store and allow access to the raw XML that is read in from
subtitle assets so that it cab be verified without any
interference from being passed through libdcp.
Diffstat (limited to 'src/interop_subtitle_asset.cc')
| -rw-r--r-- | src/interop_subtitle_asset.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interop_subtitle_asset.cc b/src/interop_subtitle_asset.cc index d250b752..39521ed7 100644 --- a/src/interop_subtitle_asset.cc +++ b/src/interop_subtitle_asset.cc @@ -61,6 +61,8 @@ using namespace dcp; InteropSubtitleAsset::InteropSubtitleAsset (boost::filesystem::path file) : SubtitleAsset (file) { + _raw_xml = dcp::file_to_string (file); + shared_ptr<cxml::Document> xml (new cxml::Document ("DCSubtitle")); xml->read_file (file); _id = xml->string_child ("SubtitleID"); |
