summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-09-20 09:44:49 +0100
committerCarl Hetherington <cth@carlh.net>2016-09-20 09:44:49 +0100
commite45d5bbe01e291038397d3b879f102a1ffe69615 (patch)
tree12e74004a452e51cd45b461f435e2e499283b9d7 /src/lib
parentc0f3447986fd336570028b5601497d752989225c (diff)
Fix crash on windows.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/reel_writer.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/lib/reel_writer.cc b/src/lib/reel_writer.cc
index 6432c294b..784eed1ef 100644
--- a/src/lib/reel_writer.cc
+++ b/src/lib/reel_writer.cc
@@ -134,10 +134,14 @@ ReelWriter::write_frame_info (Frame frame, Eyes eyes, dcp::FrameInfo info) const
bool const read = boost::filesystem::exists (info_file);
#ifdef DCPOMATIC_WINDOWS
- LOG_GENERAL (
- "Checked %1 (exists %2) length is %3 perms are %4",
- info_file, read ? 1 : 0, boost::filesystem::file_size (info_file), int(boost::filesystem::status(info_file).permissions())
- );
+ if (read) {
+ LOG_GENERAL (
+ "Checked %1 (which exists) length is %2 perms are %3",
+ info_file, boost::filesystem::file_size (info_file), int(boost::filesystem::status(info_file).permissions())
+ );
+ } else {
+ LOG_GENERAL ("Checked %1 (which does not exist)", info_file);
+ }
#endif
if (read) {