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/verify.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/verify.cc') 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