summaryrefslogtreecommitdiff
path: root/src/reel_atmos_asset.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-03-15 00:49:41 +0000
committerCarl Hetherington <cth@carlh.net>2019-03-17 00:24:27 +0000
commit2d60083498861ac30c751dbf0ca387573df6dc68 (patch)
treee98e7631415074b492d1422149f10f6e55367a42 /src/reel_atmos_asset.cc
parentea487953c7e51ec5c16087d739a42981ec9d0ff9 (diff)
Move asset refs and hash from ReelAsset to ReelMXF.
Diffstat (limited to 'src/reel_atmos_asset.cc')
-rw-r--r--src/reel_atmos_asset.cc16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/reel_atmos_asset.cc b/src/reel_atmos_asset.cc
index 636a7a79..f5dbc9fa 100644
--- a/src/reel_atmos_asset.cc
+++ b/src/reel_atmos_asset.cc
@@ -48,6 +48,7 @@ using namespace dcp;
ReelAtmosAsset::ReelAtmosAsset (boost::shared_ptr<AtmosAsset> asset, int64_t entry_point)
: ReelAsset (asset, asset->edit_rate(), asset->intrinsic_duration(), entry_point)
+ , ReelMXF (asset, asset->key_id())
{
}
@@ -81,7 +82,20 @@ ReelAtmosAsset::key_type () const
xmlpp::Node *
ReelAtmosAsset::write_to_cpl (xmlpp::Node* node, Standard standard) const
{
- xmlpp::Node* asset = ReelAsset::write_to_cpl (node, standard);
+ xmlpp::Node* asset = write_to_cpl_base (node, standard, hash());
asset->add_child("axd:DataType")->add_child_text("urn:smpte:ul:060e2b34.04010105.0e090604.00000000");
return asset;
}
+
+bool
+ReelAtmosAsset::equals (shared_ptr<const ReelAtmosAsset> other, EqualityOptions opt, NoteHandler note) const
+{
+ if (!asset_equals (other, opt, note)) {
+ return false;
+ }
+ if (!mxf_equals (other, opt, note)) {
+ return false;
+ }
+
+ return true;
+}