summaryrefslogtreecommitdiff
path: root/src/reel_sound_asset.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-04-11 00:10:30 +0200
committerCarl Hetherington <cth@carlh.net>2021-04-11 20:50:08 +0200
commit1a284b7c409567b6ecb223adece779487f70ac92 (patch)
treef36367b4444037e09b0224da3ea76dfcb248c241 /src/reel_sound_asset.cc
parent093525165f6397ba9eaffd19833dc978bcb32d55 (diff)
Extract some parts of ReelEncryptableAsset into ReelFileAsset
Diffstat (limited to 'src/reel_sound_asset.cc')
-rw-r--r--src/reel_sound_asset.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/reel_sound_asset.cc b/src/reel_sound_asset.cc
index 73fc7f4e..216eb1f7 100644
--- a/src/reel_sound_asset.cc
+++ b/src/reel_sound_asset.cc
@@ -50,7 +50,8 @@ using namespace dcp;
ReelSoundAsset::ReelSoundAsset (shared_ptr<SoundAsset> asset, int64_t entry_point)
: ReelAsset (asset->id(), asset->edit_rate(), asset->intrinsic_duration(), entry_point)
- , ReelEncryptableAsset (asset, asset->key_id())
+ , ReelFileAsset (asset)
+ , ReelEncryptableAsset (asset->key_id())
{
}
@@ -58,6 +59,7 @@ ReelSoundAsset::ReelSoundAsset (shared_ptr<SoundAsset> asset, int64_t entry_poin
ReelSoundAsset::ReelSoundAsset (shared_ptr<const cxml::Node> node)
: ReelAsset (node)
+ , ReelFileAsset (node)
, ReelEncryptableAsset (node)
{
node->ignore_child ("Language");
@@ -94,7 +96,7 @@ ReelSoundAsset::equals (shared_ptr<const ReelSoundAsset> other, EqualityOptions
if (!asset_equals (other, opt, note)) {
return false;
}
- if (!mxf_equals (other, opt, note)) {
+ if (!file_asset_equals (other, opt, note)) {
return false;
}