Stop double-calculation of hashes.
authorCarl Hetherington <cth@carlh.net>
Fri, 18 Dec 2015 15:16:55 +0000 (15:16 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 18 Dec 2015 15:16:55 +0000 (15:16 +0000)
ChangeLog
src/lib/writer.cc

index 53dbdb8fddf93a83a0327587398e6fe00b89e71c..7aa8facf00b16b017d863ffdd9540bbf05281595 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2015-12-18  c.hetherington  <cth@carlh.net>
 
+       * Fix double-calculation of DCP hashes.
+
        * Add hint about making non-24/48 FPS Interop DCPs.
 
 2015-12-15  Carl Hetherington  <cth@carlh.net>
index 675f210e9e469535a10c30385974d194bccc0d3a..93f5ed6d666d4395f16cf8ac09ce49dd84d50f0b 100644 (file)
@@ -473,11 +473,11 @@ Writer::finish ()
 
        BOOST_FOREACH (ReelWriter& i, _reels) {
 
-               cpl->add (i.create_reel (_reel_assets, _fonts));
-
                shared_ptr<Job> job = _job.lock ();
                DCPOMATIC_ASSERT (job);
                i.calculate_digests (job);
+
+               cpl->add (i.create_reel (_reel_assets, _fonts));
        }
 
        dcp::XMLMetadata meta;