diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-06-18 12:54:07 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-06-18 12:54:07 +0200 |
| commit | e4ca6b23d8c5b25725b6b7c1bfe4db3af932dcc0 (patch) | |
| tree | 1ba44a88585dcc8d9fb7e1d245dc130c294fe58b | |
| parent | 690e8a09a4fe5fc703fe00260d5c9509efe2921b (diff) | |
Fix finding of CPLs to make KDMs for, broken by recent libdcp additions.
| -rw-r--r-- | src/lib/types.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/types.cc b/src/lib/types.cc index 9519b3097..d2df7f1a8 100644 --- a/src/lib/types.cc +++ b/src/lib/types.cc @@ -194,10 +194,14 @@ CPLSummary::CPLSummary (boost::filesystem::path p) : dcp_directory (p.leaf().string()) { dcp::DCP dcp (p); + list<dcp::VerificationNote> notes; dcp.read (¬es); - if (!notes.empty()) { - throw dcp::ReadError(dcp::note_to_string(notes.front())); + BOOST_FOREACH (dcp::VerificationNote i, notes) { + if (i.code() != dcp::VerificationNote::EXTERNAL_ASSET) { + /* It's not just a warning about this DCP being a VF */ + throw dcp::ReadError(dcp::note_to_string(i)); + } } cpl_id = dcp.cpls().front()->id(); |
