From 1fe3f08c50ba230c2eb2506d51287878679bdcb7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 16 Dec 2012 14:55:59 +0000 Subject: Do content digest in the examine contents job (fixes #6). --- src/lib/examine_content_job.cc | 6 +++++- src/lib/film.cc | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') 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 diff --git a/src/lib/film.cc b/src/lib/film.cc index 4cfe7de0a..a1c9eb7f0 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -875,8 +875,6 @@ Film::set_content (string c) signal_changed (CONTENT); - set_content_digest (md5_digest (content_path ())); - examine_content (); } catch (...) { -- cgit v1.2.3