diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-04 22:55:10 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-05 14:35:32 +0100 |
| commit | 7b717db244554300ebed8eade8421ee3faa28d33 (patch) | |
| tree | b2000a7049585378d9c98bf2e4edd2115eeca47d /src/mxf.cc | |
| parent | b7f478b7c5d2e53205dd77dee6955f6d7ac1ce5c (diff) | |
Unpick MXF from the class hierarchy.
Diffstat (limited to 'src/mxf.cc')
| -rw-r--r-- | src/mxf.cc | 35 |
1 files changed, 2 insertions, 33 deletions
@@ -48,20 +48,13 @@ MXF::MXF () } -MXF::MXF (boost::filesystem::path file) - : Asset (file) - , _decryption_context (0) -{ - -} - MXF::~MXF () { delete _decryption_context; } void -MXF::fill_writer_info (ASDCP::WriterInfo* writer_info, Standard standard) +MXF::fill_writer_info (ASDCP::WriterInfo* writer_info, string id, Standard standard) { writer_info->ProductVersion = _metadata.product_version; writer_info->CompanyName = _metadata.company_name; @@ -73,7 +66,7 @@ MXF::fill_writer_info (ASDCP::WriterInfo* writer_info, Standard standard) writer_info->LabelSetType = ASDCP::LS_MXF_SMPTE; } unsigned int c; - Kumu::hex2bin (_id.c_str(), writer_info->AssetUUID, Kumu::UUID_Length, &c); + Kumu::hex2bin (id.c_str(), writer_info->AssetUUID, Kumu::UUID_Length, &c); DCP_ASSERT (c == Kumu::UUID_Length); if (_key_id) { @@ -86,30 +79,6 @@ MXF::fill_writer_info (ASDCP::WriterInfo* writer_info, Standard standard) } } -bool -MXF::equals (shared_ptr<const Asset> other, EqualityOptions opt, NoteHandler note) const -{ - if (!Asset::equals (other, opt, note)) { - return false; - } - - shared_ptr<const MXF> other_mxf = dynamic_pointer_cast<const MXF> (other); - if (!other_mxf) { - return false; - } - - if (_file.leaf() != other_mxf->file().leaf()) { - if (!opt.mxf_filenames_can_differ) { - note (DCP_ERROR, "MXF: filenames differ"); - return false; - } else { - note (DCP_NOTE, "MXF: filenames differ"); - } - } - - return true; -} - /** Set the (private) key that will be used to encrypt or decrypt this MXF's content. * This is the top-secret key that is distributed (itself encrypted) to cinemas * via Key Delivery Messages (KDMs). |
