diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-03-15 12:18:10 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-03-15 12:18:10 +0000 |
| commit | 835fd0fd7ee052edc001ac8fe3c928d1de7367e8 (patch) | |
| tree | 798d50a74ee1a6bf22b11467517aa97dce609609 /src/lib/film.cc | |
| parent | dc864b775198d3378bd77031ad4750bf49e93b6b (diff) | |
Don't offer to make KDMs for CPLs with no encrypted assets (#1490).
Diffstat (limited to 'src/lib/film.cc')
| -rw-r--r-- | src/lib/film.cc | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index f1d066f34..76cd8da96 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -92,6 +92,7 @@ using std::runtime_error; using std::copy; using std::back_inserter; using std::map; +using std::exception; using boost::shared_ptr; using boost::weak_ptr; using boost::dynamic_pointer_cast; @@ -1055,17 +1056,7 @@ Film::cpls () const ) { try { - dcp::DCP dcp (*i); - dcp.read (); - DCPOMATIC_ASSERT (dcp.cpls().front()->file()); - out.push_back ( - CPLSummary ( - i->path().leaf().string(), - dcp.cpls().front()->id(), - dcp.cpls().front()->annotation_text(), - dcp.cpls().front()->file().get() - ) - ); + out.push_back (CPLSummary(*i)); } catch (...) { } |
