summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-05-09 22:30:49 +0100
committerCarl Hetherington <cth@carlh.net>2014-05-09 22:30:49 +0100
commit490558a8fc5fdc567f7f586c0421ad89101a9a2c (patch)
tree0adab1f54c8b3bf1fbe08d99f7f980838bd916c5 /src/lib
parent18af438ee543d00e9e3a692fda61a2fe08f6d1e9 (diff)
Re-introduce ffprobe call when adding content.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/film.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc
index 8bececf4f..7b72126f9 100644
--- a/src/lib/film.cc
+++ b/src/lib/film.cc
@@ -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);