diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-11-12 22:24:12 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-11-19 22:34:01 +0100 |
| commit | c46f6125c482f2a3361cd33d1e1163927f038e9d (patch) | |
| tree | 8b905cb411c395e617ba2c6d583497e1f4f43dea /src/verify.cc | |
| parent | e3fa86ef35f212b14b593dd36dbff66e845d37e4 (diff) | |
Report progress with done/total rather than a float.
Diffstat (limited to 'src/verify.cc')
| -rw-r--r-- | src/verify.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/verify.cc b/src/verify.cc index dba5dfb1..9a1c0dcc 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -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 */ |
