summaryrefslogtreecommitdiff
path: root/src/lib/encoded_data.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-04-21 01:00:36 +0100
committerCarl Hetherington <cth@carlh.net>2015-04-21 01:00:36 +0100
commitff96cc9c9e33fbe9dea02ea2d397144f9c9ac8c9 (patch)
tree30182f6187bb2ac4df9499f9b64e42aa9ae862dc /src/lib/encoded_data.cc
parent1a9453df58177ff006da99e9ef1ed77624aa7d42 (diff)
Hand-apply bd7102b476c631b1fa9067f18ce938d86073f6c8; single-file hashes.
Diffstat (limited to 'src/lib/encoded_data.cc')
-rw-r--r--src/lib/encoded_data.cc15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/lib/encoded_data.cc b/src/lib/encoded_data.cc
index 0e8ffd6b5..4f8aaab4b 100644
--- a/src/lib/encoded_data.cc
+++ b/src/lib/encoded_data.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -91,15 +91,14 @@ EncodedData::write (shared_ptr<const Film> film, int frame, Eyes eyes) const
}
void
-EncodedData::write_info (shared_ptr<const Film> film, int frame, Eyes eyes, dcp::FrameInfo fin) const
+EncodedData::write_info (shared_ptr<const Film> film, int frame, Eyes eyes, dcp::FrameInfo info) const
{
- boost::filesystem::path const info = film->info_path (frame, eyes);
- FILE* h = fopen_boost (info, "w");
- if (!h) {
- throw OpenFileError (info);
+ FILE* file = fopen_boost (film->info_file(), "ab");
+ if (!file) {
+ throw OpenFileError (film->info_file ());
}
- fin.write (h);
- fclose (h);
+ write_frame_info (file, frame, eyes, info);
+ fclose (file);
}
/** Send this data to a socket.