summaryrefslogtreecommitdiff
path: root/src/lib/content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-08-20 23:48:51 +0100
committerCarl Hetherington <cth@carlh.net>2013-08-20 23:48:51 +0100
commitbed373d380d35294b03d228a2ef41cfa8fceb4b0 (patch)
tree0814e6039bb4d9e4aa4d12da989d005da5305b6e /src/lib/content.cc
parent2b1f823c64e400de11799849c4788d4ee774b286 (diff)
Support TGA file directories and improve progress reporting when hashing directories of image files.
Diffstat (limited to 'src/lib/content.cc')
-rw-r--r--src/lib/content.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/content.cc b/src/lib/content.cc
index 44b52a471..d2a07f795 100644
--- a/src/lib/content.cc
+++ b/src/lib/content.cc
@@ -80,7 +80,7 @@ Content::as_xml (xmlpp::Node* node) const
}
void
-Content::examine (shared_ptr<Job>)
+Content::examine (shared_ptr<Job> job)
{
boost::mutex::scoped_lock lm (_mutex);
boost::filesystem::path p = _path;
@@ -90,7 +90,7 @@ Content::examine (shared_ptr<Job>)
if (boost::filesystem::is_regular_file (p)) {
d = md5_digest (p);
} else {
- d = md5_digest_directory (p);
+ d = md5_digest_directory (p, job);
}
lm.lock ();