summaryrefslogtreecommitdiff
path: root/src/lib/examine_content_job.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-12-16 14:55:59 +0000
committerCarl Hetherington <cth@carlh.net>2012-12-16 14:55:59 +0000
commit1fe3f08c50ba230c2eb2506d51287878679bdcb7 (patch)
treeaee4f039a26dd3bf1c61e151ffdcc784dc053e4c /src/lib/examine_content_job.cc
parentaa230169f8b59b7cb2da9a3bbb8ce5f7600285c0 (diff)
Do content digest in the examine contents job (fixes #6).
Diffstat (limited to 'src/lib/examine_content_job.cc')
-rw-r--r--src/lib/examine_content_job.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/examine_content_job.cc b/src/lib/examine_content_job.cc
index 70a04b825..a783cde33 100644
--- a/src/lib/examine_content_job.cc
+++ b/src/lib/examine_content_job.cc
@@ -59,7 +59,11 @@ ExamineContentJob::name () const
void
ExamineContentJob::run ()
{
- descend (1);
+ descend (0.5);
+ _film->set_content_digest (md5_digest (_film->content_path ()));
+ ascend ();
+
+ descend (0.5);
/* Set the film's length to either
a) a length judged by running through the content or