summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mxf.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mxf.cc b/src/mxf.cc
index 0cde395c..5d90d60e 100644
--- a/src/mxf.cc
+++ b/src/mxf.cc
@@ -36,6 +36,7 @@
#include <iostream>
using std::string;
+using std::cout;
using std::list;
using std::pair;
using boost::shared_ptr;
@@ -105,8 +106,10 @@ MXF::read_writer_info (ASDCP::WriterInfo const & info)
{
char buffer[64];
- Kumu::bin2UUIDhex (info.CryptographicKeyID, ASDCP::UUIDlen, buffer, sizeof (buffer));
- _key_id = buffer;
+ if (info.EncryptedEssence) {
+ Kumu::bin2UUIDhex (info.CryptographicKeyID, ASDCP::UUIDlen, buffer, sizeof (buffer));
+ _key_id = buffer;
+ }
_metadata.read (info);