summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-08-20 17:52:52 +0100
committerCarl Hetherington <cth@carlh.net>2015-08-20 17:52:52 +0100
commit19c1cf839bc8ea292679b7ebb2d6e4d8c2d6d152 (patch)
tree6ddedb3b832006ed997f82a1c212f04542c39b28 /src
parent08fc50d52855ff07d3697d08bee78e7d6e703754 (diff)
Use r+b not ab for fopen_boost so that we get the behaviour we wanted.
Diffstat (limited to 'src')
-rw-r--r--src/lib/writer.cc3
1 files changed, 1 insertions, 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);
}