projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18af438
)
Re-introduce ffprobe call when adding content.
author
Carl Hetherington
<cth@carlh.net>
Fri, 9 May 2014 21:30:49 +0000
(22:30 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 9 May 2014 21:30:49 +0000
(22:30 +0100)
src/lib/film.cc
patch
|
blob
|
history
diff --git
a/src/lib/film.cc
b/src/lib/film.cc
index 8bececf4f3f8e777e7ecd6e0b86b5f65587b35e9..7b72126f95c9d459ba2b209b0e24b4d9d29260e9 100644
(file)
--- 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);