Re-introduce ffprobe call when adding content.
authorCarl Hetherington <cth@carlh.net>
Fri, 9 May 2014 21:30:49 +0000 (22:30 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 9 May 2014 21:30:49 +0000 (22:30 +0100)
src/lib/film.cc

index 8bececf4f3f8e777e7ecd6e0b86b5f65587b35e9..7b72126f95c9d459ba2b209b0e24b4d9d29260e9 100644 (file)
@@ -827,6 +827,10 @@ Film::content () const
 void
 Film::examine_and_add_content (shared_ptr<Content> c)
 {
+       if (dynamic_pointer_cast<FFmpegContent> (c)) {
+               run_ffprobe (c->path(0), file ("ffprobe.log"), _log);
+       }
+                       
        shared_ptr<Job> j (new ExamineContentJob (shared_from_this(), c));
        j->Finished.connect (bind (&Film::maybe_add_content, this, boost::weak_ptr<Job> (j), boost::weak_ptr<Content> (c)));
        JobManager::instance()->add (j);