From 785d0368875953180c905a175b16b023869690f7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 19 Sep 2016 15:16:53 +0100 Subject: Add some debugging logs for #953. --- src/lib/reel_writer.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib') diff --git a/src/lib/reel_writer.cc b/src/lib/reel_writer.cc index d742818ae..e2827251b 100644 --- a/src/lib/reel_writer.cc +++ b/src/lib/reel_writer.cc @@ -130,7 +130,13 @@ ReelWriter::write_frame_info (Frame frame, Eyes eyes, dcp::FrameInfo info) const { FILE* file = 0; boost::filesystem::path info_file = _film->info_file (_period); + bool const read = boost::filesystem::exists (info_file); + 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) { file = fopen_boost (info_file, "r+b"); } else { -- cgit v1.2.3 From c0f3447986fd336570028b5601497d752989225c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 19 Sep 2016 15:50:57 +0100 Subject: Try to fix build. --- src/lib/reel_writer.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib') diff --git a/src/lib/reel_writer.cc b/src/lib/reel_writer.cc index e2827251b..6432c294b 100644 --- a/src/lib/reel_writer.cc +++ b/src/lib/reel_writer.cc @@ -132,10 +132,13 @@ ReelWriter::write_frame_info (Frame frame, Eyes eyes, dcp::FrameInfo info) const boost::filesystem::path info_file = _film->info_file (_period); 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()) ); +#endif if (read) { file = fopen_boost (info_file, "r+b"); -- cgit v1.2.3