X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcontent.cc;h=6e02183233da9f6f288794d61de2835bc439c8d1;hb=c008066160d85b9ec9e5485375d7baaa5d27bda2;hp=21e49a2c955ae7e74091ec5c1a43f4e9e238b857;hpb=391d85619ac19a2a93696ddc35c222eb9bb5d9d6;p=dcpomatic.git diff --git a/src/lib/content.cc b/src/lib/content.cc index 21e49a2c9..6e0218323 100644 --- a/src/lib/content.cc +++ b/src/lib/content.cc @@ -32,6 +32,7 @@ #include "exceptions.h" #include "film.h" #include "safe_stringstream.h" +#include "job.h" #include "i18n.h" @@ -131,8 +132,14 @@ Content::as_xml (xmlpp::Node* node) const } void -Content::examine (shared_ptr job) +Content::examine (shared_ptr job, bool calculate_digest) { + if (!calculate_digest) { + return; + } + + job->sub (_("Computing digest")); + boost::mutex::scoped_lock lm (_mutex); vector p = _paths; lm.unlock ();