From ff96cc9c9e33fbe9dea02ea2d397144f9c9ac8c9 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 21 Apr 2015 01:00:36 +0100 Subject: Hand-apply bd7102b476c631b1fa9067f18ce938d86073f6c8; single-file hashes. --- src/lib/encoded_data.cc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/lib/encoded_data.cc') 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 + Copyright (C) 2012-2015 Carl Hetherington 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 film, int frame, Eyes eyes) const } void -EncodedData::write_info (shared_ptr film, int frame, Eyes eyes, dcp::FrameInfo fin) const +EncodedData::write_info (shared_ptr 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. -- cgit v1.2.3