summaryrefslogtreecommitdiff
path: root/tools/dcpverify.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-12-06 10:47:04 +0100
committerCarl Hetherington <cth@carlh.net>2019-12-22 01:21:00 +0100
commit30dfa051113792305f9704d5a76ffaf57c21063d (patch)
tree4a4055b40bfb64ebf5b7509ef81a104db4a52e46 /tools/dcpverify.cc
parent9cb23adda9ebe6a76992b68db78ccb638348dac1 (diff)
Use VerificationNote for non-fatal errors in DCP::read.
Diffstat (limited to 'tools/dcpverify.cc')
-rw-r--r--tools/dcpverify.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/tools/dcpverify.cc b/tools/dcpverify.cc
index 675b7522..0c69ba78 100644
--- a/tools/dcpverify.cc
+++ b/tools/dcpverify.cc
@@ -73,29 +73,6 @@ progress ()
}
-std::string
-note_to_string (dcp::VerificationNote note)
-{
- switch (note.code()) {
- case dcp::VerificationNote::GENERAL_READ:
- return *note.note();
- case dcp::VerificationNote::CPL_HASH_INCORRECT:
- return "The hash of the CPL in the PKL does not agree with the CPL file";
- case dcp::VerificationNote::INVALID_PICTURE_FRAME_RATE:
- return "The picture in a reel has an invalid frame rate";
- case dcp::VerificationNote::PICTURE_HASH_INCORRECT:
- return dcp::String::compose("The hash of the picture asset %1 does not agree with the PKL file", note.file()->filename());
- case dcp::VerificationNote::PKL_CPL_PICTURE_HASHES_DISAGREE:
- return "The PKL and CPL hashes disagree for a picture asset.";
- case dcp::VerificationNote::SOUND_HASH_INCORRECT:
- return dcp::String::compose("The hash of the sound asset %1 does not agree with the PKL file", note.file()->filename());
- case dcp::VerificationNote::PKL_CPL_SOUND_HASHES_DISAGREE:
- return "The PKL and CPL hashes disagree for a sound asset.";
- }
-
- return "";
-}
-
int
main (int argc, char* argv[])
{