diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-05-20 21:55:13 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-05-20 21:55:13 +0200 |
| commit | 60f3f8ff110d55e0d720784dd40c9bc62d342d2c (patch) | |
| tree | b15afb925a23370af8199901069ba1c9278a7949 /src | |
| parent | 87f5322a66ae176043adf9a9297e7e020ac1b5f4 (diff) | |
Fix DCP playback when an incorrect KDM is added, followed by
a correct one.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/dcp_decoder.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/dcp_decoder.cc b/src/lib/dcp_decoder.cc index 19831185d..ab724cd6c 100644 --- a/src/lib/dcp_decoder.cc +++ b/src/lib/dcp_decoder.cc @@ -451,7 +451,9 @@ DCPDecoder::calculate_lazy_digest (shared_ptr<const DCPContent> c) const BOOST_FOREACH (boost::filesystem::path i, c->paths()) { d.add (i.string()); } - d.add (static_cast<bool>(_dcp_content->kdm())); + if (_dcp_content->kdm()) { + d.add(_dcp_content->kdm()->id()); + } d.add (static_cast<bool>(c->cpl())); if (c->cpl()) { d.add (c->cpl().get()); |
