From 8e7d91ac8b945d66a65fc7b20249cd1c7796c7fa Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 28 Jan 2013 18:43:27 +0000 Subject: Write more extensive information about frames, and hash the MXF packet rather than the J2K data. --- src/lib/dcp_video_frame.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/dcp_video_frame.cc') diff --git a/src/lib/dcp_video_frame.cc b/src/lib/dcp_video_frame.cc index 5df2d7a46..4f3fda44a 100644 --- a/src/lib/dcp_video_frame.cc +++ b/src/lib/dcp_video_frame.cc @@ -425,11 +425,11 @@ EncodedData::write (shared_ptr film, int frame) const } void -EncodedData::write_hash (shared_ptr film, int frame) const +EncodedData::write_info (shared_ptr film, int frame, libdcp::FrameInfo fin) const { - string const hash = film->hash_path (frame); - ofstream h (hash.c_str()); - h << md5_digest (_data, _size) << "\n"; + string const info = film->info_path (frame); + ofstream h (info.c_str()); + fin.write (h); } /** Send this data to a socket. -- cgit v1.2.3