diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-02-28 12:26:44 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-02-28 12:26:44 +0000 |
| commit | d15e78baea5b9df87019cd6be1b58a1b949af5c2 (patch) | |
| tree | bc539d1a9e80a32267755f4a7d21457ba2d88cf6 /src | |
| parent | ad40a8ddc8928c43492f631fc038e58d17bdd221 (diff) | |
Try to improve detection of image sequence vs. DCP.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/content_factory.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/content_factory.cc b/src/lib/content_factory.cc index 2b17d69e4..911527384 100644 --- a/src/lib/content_factory.cc +++ b/src/lib/content_factory.cc @@ -96,7 +96,15 @@ content_factory (shared_ptr<const Film> film, boost::filesystem::path path) continue; } - if (!boost::filesystem::is_regular_file (i->path()) || !valid_image_file (i->path())) { + if (!boost::filesystem::is_regular_file(i->path())) { + /* Ignore things which aren't files (probably directories) */ + continue; + } + + if (!valid_image_file (i->path())) { + /* We have a normal file which isn't an image; assume we are looking + at a DCP. + */ is_dcp = true; } |
