Try to fix build.
[dcpomatic.git] / src / lib / reel_writer.cc
index 1f9885e646b99cbc4a94f2e17ba220182cfc0091..6432c294bbee29746280a953fd5bce5052bb9dfe 100644 (file)
@@ -119,11 +119,7 @@ ReelWriter::ReelWriter (
                */
                _sound_asset_writer = _sound_asset->start_write (
                        _film->directory().get() / audio_asset_filename (_sound_asset, _reel_index, _reel_count, _content_summary),
-                       _film->interop() ? dcp::INTEROP : dcp::SMPTE,
-                       /* XXX: this could well be wrong, but it's better than nothing; the whole channel assignment
-                          thing needs fixing.
-                       */
-                       dcp::CHANNEL_ASSIGNMENT_71
+                       _film->interop() ? dcp::INTEROP : dcp::SMPTE
                        );
        }
 }
@@ -134,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 {