X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Futil.cc;h=6e2a1ad642c9d2b7a945abf32314879438b233c2;hp=7106cc782fb077e48f49a619651b008e7be502ff;hb=a2f8e8839f276bc83d5926983ab2d38e0a36f927;hpb=809bcfd85fad2ef7d4131c054be4cccd5bcc9d05 diff --git a/src/lib/util.cc b/src/lib/util.cc index 7106cc782..6e2a1ad64 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -530,6 +530,13 @@ digest_head_tail (vector files, boost::uintmax_t size) } +string +simple_digest (vector paths) +{ + return digest_head_tail(paths, 1000000) + raw_convert(boost::filesystem::file_size(paths.front())); +} + + /** Trip an assert if the caller is not in the UI thread */ void ensure_ui_thread ()