Use r+b not ab for fopen_boost so that we get the behaviour we wanted.
authorCarl Hetherington <cth@carlh.net>
Thu, 20 Aug 2015 16:52:52 +0000 (17:52 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 20 Aug 2015 16:52:52 +0000 (17:52 +0100)
src/lib/writer.cc

index 91263fe25f40c230cf30345a0762f1a2002984b3..19030430036d439a3f772efc9af690118027d5ae 100644 (file)
@@ -294,7 +294,7 @@ Writer::have_sequenced_image_at_queue_head ()
 void
 Writer::write_frame_info (int frame, Eyes eyes, dcp::FrameInfo info) const
 {
-       FILE* file = fopen_boost (_film->info_file(), "ab");
+       FILE* file = fopen_boost (_film->info_file(), "r+b");
        if (!file) {
                throw OpenFileError (_film->info_file ());
        }
@@ -784,7 +784,6 @@ Writer::frame_info_position (int frame, Eyes eyes) const
                DCPOMATIC_ASSERT (false);
        }
 
-
        DCPOMATIC_ASSERT (false);
 }