Report progress with done/total rather than a float.
[libdcp.git] / src / verify.cc
index dba5dfb13b76cd35a0a3e35ea225067631fb17fb..9a1c0dcc7a7bddc9e0860fb38c9741f08b422ef5 100644 (file)
@@ -393,7 +393,9 @@ verify_asset (shared_ptr<const DCP> dcp, shared_ptr<const ReelFileAsset> reel_fi
         * call to hash().
         */
        reel_file_asset->asset_ref()->unset_hash();
-       auto const actual_hash = reel_file_asset->asset_ref()->hash(progress);
+       auto const actual_hash = reel_file_asset->asset_ref()->hash([progress](int64_t done, int64_t total) {
+               progress(float(done) / total);
+       });
 
        auto pkls = dcp->pkls();
        /* We've read this DCP in so it must have at least one PKL */