Merge branch 'master' of ssh://git.carlh.net/home/carl/git/dcpomatic
authorCarl Hetherington <cth@carlh.net>
Mon, 19 Sep 2016 23:21:54 +0000 (00:21 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 19 Sep 2016 23:21:54 +0000 (00:21 +0100)
run/dcpomatic
src/lib/reel_writer.cc

index eaba93886eb332bdc423a3dc6ec61484c6d220b9..0bd54f66b0cade2025582cec56b0acf94d25eab8 100755 (executable)
@@ -7,7 +7,7 @@ if [ "$1" == "--debug" ]; then
     gdb --args build/src/tools/dcpomatic2 $*
 elif [ "$1" == "--valgrind" ]; then
     shift
-    valgrind --tool="memcheck" --suppressions=suppressions build/src/tools/dcpomatic2 $*
+    valgrind --tool="memcheck" --suppressions=suppressions --track-fds=yes build/src/tools/dcpomatic2 $*
 elif [ "$1" == "--callgrind" ]; then
     shift
     valgrind --tool="callgrind" build/src/tools/dcpomatic2 $*
index d742818ae08849bfe81e191c3f922deb01a3b6c0..6432c294bbee29746280a953fd5bce5052bb9dfe 100644 (file)
@@ -130,7 +130,16 @@ 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);
+
+#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");
        } else {