From 45ed3bf55175a8555123b320b366efb69b1ba629 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 16 Dec 2025 17:44:33 +0100 Subject: Rename assets() to file_assets() since this is what it was returning anyway. --- src/reel.cc | 6 +++--- src/reel.h | 2 +- src/verify.cc | 7 +++---- 3 files changed, 7 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/reel.cc b/src/reel.cc index a298194f..469c4416 100644 --- a/src/reel.cc +++ b/src/reel.cc @@ -405,10 +405,10 @@ Reel::add (shared_ptr asset) } -vector> -Reel::assets () const +vector> +Reel::file_assets() const { - vector> a; + vector> a; if (_main_picture) { a.push_back (_main_picture); } diff --git a/src/reel.h b/src/reel.h index 347013c3..ecea0965 100644 --- a/src/reel.h +++ b/src/reel.h @@ -133,7 +133,7 @@ public: void add (std::shared_ptr asset); - std::vector> assets () const; + std::vector> file_assets() const; xmlpp::Element* write_to_cpl (xmlpp::Element* node, Standard standard) const; diff --git a/src/verify.cc b/src/verify.cc index 4a767de1..2f094ebe 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -1406,22 +1406,21 @@ verify_reel( map* markers_seen ) { - for (auto i: reel->assets()) { + for (auto i: reel->file_assets()) { if (i->duration() && (i->duration().get() * i->edit_rate().denominator / i->edit_rate().numerator) < 1) { context.error(VerificationNote::Code::INVALID_DURATION, i->id()); } if ((i->intrinsic_duration() * i->edit_rate().denominator / i->edit_rate().numerator) < 1) { context.error(VerificationNote::Code::INVALID_INTRINSIC_DURATION, i->id()); } - auto file_asset = dynamic_pointer_cast(i); - if (i->encryptable() && !file_asset->hash()) { + if (i->encryptable() && !i->hash()) { context.bv21_error(VerificationNote::Code::MISSING_HASH, i->id()); } } if (context.dcp->standard() == Standard::SMPTE) { boost::optional duration; - for (auto i: reel->assets()) { + for (auto i: reel->file_assets()) { if (!duration) { duration = i->actual_duration(); } else if (*duration != i->actual_duration()) { -- cgit v1.2.3