summaryrefslogtreecommitdiff
path: root/src/mxf.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-04 22:32:52 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-05 14:35:31 +0100
commitb7f478b7c5d2e53205dd77dee6955f6d7ac1ce5c (patch)
tree55a2eb14998135c1d0bc93761dc66dc57fad2722 /src/mxf.cc
parent29844b3efd68ee102686e0ae6a04a926c1dbbbd8 (diff)
Make read_writer_info do more stuff, and return id.
Diffstat (limited to 'src/mxf.cc')
-rw-r--r--src/mxf.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mxf.cc b/src/mxf.cc
index d259bd97..bc5c0bd1 100644
--- a/src/mxf.cc
+++ b/src/mxf.cc
@@ -131,10 +131,16 @@ MXF::set_key (Key key)
}
}
-void
+string
MXF::read_writer_info (ASDCP::WriterInfo const & info)
{
char buffer[64];
+
+ Kumu::bin2UUIDhex (info.CryptographicKeyID, ASDCP::UUIDlen, buffer, sizeof (buffer));
+ _key_id = buffer;
+
+ _metadata.read (info);
+
Kumu::bin2UUIDhex (info.AssetUUID, ASDCP::UUIDlen, buffer, sizeof (buffer));
- _id = buffer;
+ return buffer;
}