summaryrefslogtreecommitdiff
path: root/src/smpte_subtitle_asset.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/smpte_subtitle_asset.cc')
-rw-r--r--src/smpte_subtitle_asset.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/smpte_subtitle_asset.cc b/src/smpte_subtitle_asset.cc
index 6a62bc1d..29a423a4 100644
--- a/src/smpte_subtitle_asset.cc
+++ b/src/smpte_subtitle_asset.cc
@@ -97,7 +97,7 @@ SMPTESubtitleAsset::SMPTESubtitleAsset (boost::filesystem::path file)
reader->ReadTimedTextResource (_raw_xml);
xml->read_string (_raw_xml);
parse_xml (xml);
- read_mxf_descriptor (reader, shared_ptr<DecryptionContext> (new DecryptionContext (optional<Key>(), SMPTE)));
+ read_mxf_descriptor (reader, shared_ptr<DecryptionContext> (new DecryptionContext (optional<Key>(), SMPTE, true)));
}
} else {
/* Plain XML */
@@ -278,7 +278,7 @@ SMPTESubtitleAsset::set_key (Key key)
);
}
- shared_ptr<DecryptionContext> dec (new DecryptionContext (key, SMPTE));
+ shared_ptr<DecryptionContext> dec (new DecryptionContext(key, SMPTE, true));
reader->ReadTimedTextResource (_raw_xml, dec->context(), dec->hmac());
shared_ptr<cxml::Document> xml (new cxml::Document ("SubtitleReel"));
xml->read_string (_raw_xml);
@@ -345,7 +345,7 @@ SMPTESubtitleAsset::xml_as_string () const
void
SMPTESubtitleAsset::write (boost::filesystem::path p) const
{
- EncryptionContext enc (key(), SMPTE);
+ EncryptionContext enc (key(), SMPTE, true);
ASDCP::WriterInfo writer_info;
fill_writer_info (&writer_info, _id);