diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-02-12 15:40:07 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-02-12 22:55:49 +0100 |
| commit | c88d7a66e3751cac223704c68aa4278a9c0de638 (patch) | |
| tree | fb2ca38b176497f07ad7588149240fb8aec1c423 /src | |
| parent | e0b3f0dec29dfe2952a8bdf445295e8445a8ecd9 (diff) | |
Cleanup: use a local variable.
Diffstat (limited to 'src')
| -rw-r--r-- | src/verify.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/verify.cc b/src/verify.cc index 61c41743..2f8f0a53 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -575,26 +575,28 @@ verify_main_sound_asset ( ) { auto asset = reel_asset->asset(); - stage ("Checking sound asset hash", asset->file()); + auto const file = *asset->file(); + + stage("Checking sound asset hash", file); auto const r = verify_asset (dcp, reel_asset, progress); switch (r) { case VerifyAssetResult::BAD: - notes.push_back ({VerificationNote::Type::ERROR, VerificationNote::Code::INCORRECT_SOUND_HASH, *asset->file()}); + notes.push_back({VerificationNote::Type::ERROR, VerificationNote::Code::INCORRECT_SOUND_HASH, file}); break; case VerifyAssetResult::CPL_PKL_DIFFER: - notes.push_back ({VerificationNote::Type::ERROR, VerificationNote::Code::MISMATCHED_SOUND_HASHES, *asset->file()}); + notes.push_back({VerificationNote::Type::ERROR, VerificationNote::Code::MISMATCHED_SOUND_HASHES, file}); break; default: break; } - stage ("Checking sound asset metadata", asset->file()); + stage ("Checking sound asset metadata", file); if (auto lang = asset->language()) { verify_language_tag (*lang, notes); } if (asset->sampling_rate() != 48000) { - notes.push_back ({VerificationNote::Type::BV21_ERROR, VerificationNote::Code::INVALID_SOUND_FRAME_RATE, raw_convert<string>(asset->sampling_rate()), *asset->file()}); + notes.push_back({VerificationNote::Type::BV21_ERROR, VerificationNote::Code::INVALID_SOUND_FRAME_RATE, raw_convert<string>(asset->sampling_rate()), file}); } } |
