From 19c1cf839bc8ea292679b7ebb2d6e4d8c2d6d152 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 20 Aug 2015 17:52:52 +0100 Subject: [PATCH] Use r+b not ab for fopen_boost so that we get the behaviour we wanted. --- src/lib/writer.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/writer.cc b/src/lib/writer.cc index 91263fe25..190304300 100644 --- a/src/lib/writer.cc +++ b/src/lib/writer.cc @@ -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); } -- 2.30.2