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 19831185d16203834393335716420998b4a64e84..ab724cd6c75bbb7a5f02326e15b92f3a964a0322 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());