diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-03-18 18:08:53 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-03-18 18:08:53 +0100 |
| commit | 03257d7e08986d1333190f447e5d64c609ade981 (patch) | |
| tree | 60a5613424d1197c2783d79cd710e94c1842036a | |
| parent | 6c11fdfda7a0f306f894b15b56b72d3c4898013d (diff) | |
Catch read errors from verify_cpl (e.g. basic failures to read a video frame).v1.8.98
| -rw-r--r-- | src/verify.cc | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/src/verify.cc b/src/verify.cc index 0ef4ada5..9715c020 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -1904,16 +1904,20 @@ dcp::verify ( } for (auto cpl: dcp->cpls()) { - verify_cpl( - dcp, - cpl, - stage, - *xsd_dtd_directory, - progress, - options, - notes, - state - ); + try { + verify_cpl( + dcp, + cpl, + stage, + *xsd_dtd_directory, + progress, + options, + notes, + state + ); + } catch (ReadError& e) { + notes.push_back({VerificationNote::Type::ERROR, VerificationNote::Code::FAILED_READ, string(e.what())}); + } } for (auto pkl: dcp->pkls()) { |
