projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69d3dda
)
Fix crash when finding DCP size with Interop subs.
author
Carl Hetherington
<cth@carlh.net>
Thu, 15 Jun 2017 12:54:43 +0000
(13:54 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 15 Jun 2017 12:54:43 +0000
(13:54 +0100)
src/lib/writer.cc
patch
|
blob
|
history
diff --git
a/src/lib/writer.cc
b/src/lib/writer.cc
index 064c3f0ec08db18da764b54a1b218c8f6759c598..5e8f8fc9fd1935476a1a8f7238b3b4b14acf5be8 100644
(file)
--- 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)) {