summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-12-27 22:45:33 +0100
committerCarl Hetherington <cth@carlh.net>2024-04-15 10:59:34 +0200
commitf443c3161460c1b927ec9072fdc4e76a2f156cab (patch)
treed6066fa09391fa8d305b5dfef2cccecf7a395be6 /src
parent6c2b42d53a9c7f5bec21795667faf94acf5bf1af (diff)
Add OK note when picture asset hashes are correct.
Diffstat (limited to 'src')
-rw-r--r--src/verify.cc3
-rw-r--r--src/verify.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/verify.cc b/src/verify.cc
index 85d09204..9756f9c7 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -619,6 +619,7 @@ verify_main_picture_asset(Context& context, shared_ptr<const ReelPictureAsset> r
context.error(VerificationNote::Code::MISMATCHED_PICTURE_HASHES, file);
break;
default:
+ context.ok(VerificationNote::Code::CORRECT_PICTURE_HASH, file);
break;
}
}
@@ -1933,6 +1934,8 @@ dcp::note_to_string (VerificationNote note)
return String::compose("The picture in a reel has an invalid frame rate %1.", note.note().get());
case VerificationNote::Code::INCORRECT_PICTURE_HASH:
return String::compose("The hash (%1) of the picture asset %2 does not agree with the PKL file (%3).", note.calculated_hash().get(), note.file()->filename(), note.reference_hash().get());
+ case VerificationNote::Code::CORRECT_PICTURE_HASH:
+ return String::compose("The picture asset %1 has the expected hashes in the CPL and PKL.", note.file()->filename());
case VerificationNote::Code::MISMATCHED_PICTURE_HASHES:
return String::compose("The PKL and CPL hashes differ for the picture asset %1.", note.file()->filename());
case VerificationNote::Code::INCORRECT_SOUND_HASH:
diff --git a/src/verify.h b/src/verify.h
index eeda0b7a..339f4186 100644
--- a/src/verify.h
+++ b/src/verify.h
@@ -114,6 +114,7 @@ public:
* note contains the invalid frame rate as "<numerator>/<denominator>"
*/
INVALID_PICTURE_FRAME_RATE,
+ CORRECT_PICTURE_HASH,
/** The hash of a main picture asset does not agree with the PKL file
* file contains the picture asset filename
* calculated_hash contains the current hash of the picture MXF