Fix DCP playback when an incorrect KDM is added, followed by
authorCarl Hetherington <cth@carlh.net>
Wed, 20 May 2020 19:55:13 +0000 (21:55 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 20 May 2020 19:55:13 +0000 (21:55 +0200)
a correct one.

src/lib/dcp_decoder.cc

index 1983118..ab724cd 100644 (file)
@@ -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());