Lazy digest building.
[libdcp.git] / src / picture_asset.cc
index c3bf39e8c7a6d223e7ea8eb69a0a2c686badaa43..abf9fcd97e3103ad75cf27c0f517f71845c2e00e 100644 (file)
@@ -74,7 +74,7 @@ PictureAsset::PictureAsset (string directory, string mxf_name, int fps, int leng
        , _width (width)
        , _height (height)
 {
-       _digest = make_digest (mxf_path().string(), 0);
+
 }
 
 string
@@ -123,8 +123,6 @@ PictureAsset::construct (sigc::slot<string, int> get_path)
        if (ASDCP_FAILURE (mxf_writer.Finalize())) {
                throw MiscError ("error in finalising video MXF");
        }
-
-       _digest = make_digest (mxf_path().string(), _progress);
 }
 
 void