diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-06-15 13:54:43 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-06-15 13:54:43 +0100 |
| commit | e60e8613908c666d7e829c2fd69fc2191d0bc2fd (patch) | |
| tree | e56672bd9c6da559790a4d0b36db125a0139f906 | |
| parent | 69d3ddac6965440adc776ca382369fe4460e0adb (diff) | |
Fix crash when finding DCP size with Interop subs.
| -rw-r--r-- | src/lib/writer.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/writer.cc b/src/lib/writer.cc index 064c3f0ec..5e8f8fc9f 100644 --- a/src/lib/writer.cc +++ b/src/lib/writer.cc @@ -563,7 +563,9 @@ Writer::write_cover_sheet () boost::filesystem::recursive_directory_iterator i = boost::filesystem::recursive_directory_iterator(_film->dir(_film->dcp_name())); i != boost::filesystem::recursive_directory_iterator(); ++i) { - size += boost::filesystem::file_size (i->path ()); + if (boost::filesystem::is_regular_file (i->path ())) { + size += boost::filesystem::file_size (i->path ()); + } } if (size > (1000000000L)) { |
