summaryrefslogtreecommitdiff
path: root/src/mxf.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-01-22 19:42:39 +0000
committerCarl Hetherington <cth@carlh.net>2014-01-22 19:42:39 +0000
commit1c724e363a644abaee7efb39d6091e7b30de0fb6 (patch)
tree413e28533849835f8496c8c972bd26e1d27aefbe /src/mxf.cc
parent1e9f115b7cda68ccba99f58d194a2c0eb83e7e23 (diff)
Various work.
Diffstat (limited to 'src/mxf.cc')
-rw-r--r--src/mxf.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mxf.cc b/src/mxf.cc
index e37b2822..fa3aed8b 100644
--- a/src/mxf.cc
+++ b/src/mxf.cc
@@ -42,8 +42,8 @@ using boost::lexical_cast;
using boost::dynamic_pointer_cast;
using namespace dcp;
-MXF::MXF (boost::filesystem::path directory, boost::filesystem::path file_name)
- : ContentAsset (directory, file_name)
+MXF::MXF (boost::filesystem::path file)
+ : Content (file)
, _progress (0)
, _encryption_context (0)
, _decryption_context (0)
@@ -71,7 +71,7 @@ MXF::fill_writer_info (ASDCP::WriterInfo* writer_info)
writer_info->LabelSetType = ASDCP::LS_MXF_SMPTE;
}
unsigned int c;
- Kumu::hex2bin (_uuid.c_str(), writer_info->AssetUUID, Kumu::UUID_Length, &c);
+ Kumu::hex2bin (_id.c_str(), writer_info->AssetUUID, Kumu::UUID_Length, &c);
assert (c == Kumu::UUID_Length);
if (_key) {
@@ -85,9 +85,9 @@ MXF::fill_writer_info (ASDCP::WriterInfo* writer_info)
}
bool
-MXF::equals (shared_ptr<const ContentAsset> other, EqualityOptions opt, boost::function<void (NoteType, string)> note) const
+MXF::equals (shared_ptr<const Content> other, EqualityOptions opt, boost::function<void (NoteType, string)> note) const
{
- if (!ContentAsset::equals (other, opt, note)) {
+ if (!Content::equals (other, opt, note)) {
return false;
}
@@ -97,7 +97,7 @@ MXF::equals (shared_ptr<const ContentAsset> other, EqualityOptions opt, boost::f
return false;
}
- if (_file_name != other_mxf->_file_name) {
+ if (_file != other_mxf->file ()) {
note (ERROR, "MXF names differ");
if (!opt.mxf_names_can_differ) {
return false;
@@ -115,8 +115,8 @@ MXF::write_to_cpl (xmlpp::Element* node) const
if (!attr.first.empty ()) {
a->set_attribute (attr.first, attr.second);
}
- a->add_child ("Id")->add_child_text ("urn:uuid:" + _uuid);
- a->add_child ("AnnotationText")->add_child_text (_file_name.string ());
+ a->add_child ("Id")->add_child_text ("urn:uuid:" + _id);
+ a->add_child ("AnnotationText")->add_child_text (_file.string ());
a->add_child ("EditRate")->add_child_text (lexical_cast<string> (_edit_rate) + " 1");
a->add_child ("IntrinsicDuration")->add_child_text (lexical_cast<string> (_intrinsic_duration));
a->add_child ("EntryPoint")->add_child_text (lexical_cast<string> (_entry_point));