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 | |
| parent | ad40a8ddc8928c43492f631fc038e58d17bdd221 (diff) | |
Try to improve detection of image sequence vs. DCP.
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | src/lib/content_factory.cc | 10 |
2 files changed, 12 insertions, 1 deletions
@@ -1,5 +1,8 @@ 2016-02-28 Carl Hetherington <cth@carlh.net> + * Ignore subdirectories when deciding whether a folder + contains an image sequence or a DCP. + * Updated nl_NL translation from Rob van Nieuwkerk. 2016-02-27 Carl Hetherington <cth@carlh.net> 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; } |
