Improve error reporting, in particular from dcpomatic_create.
[dcpomatic.git] / src / lib / film.cc
index 3e02ca4e200128c131f6f395d9a100efd6ff91ad..5e7bab0b7d7ee7af846ed387b37f813a6f078dde 100644 (file)
@@ -926,7 +926,7 @@ Film::examine_content (shared_ptr<Content> c)
 void
 Film::examine_and_add_content (shared_ptr<Content> c)
 {
-       if (dynamic_pointer_cast<FFmpegContent> (c)) {
+       if (dynamic_pointer_cast<FFmpegContent> (c) && !_directory.empty ()) {
                run_ffprobe (c->path(0), file ("ffprobe.log"), _log);
        }