summaryrefslogtreecommitdiff
path: root/src/lib/dcp_video_frame.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-01-28 18:43:27 +0000
committerCarl Hetherington <cth@carlh.net>2013-01-28 18:43:27 +0000
commit8e7d91ac8b945d66a65fc7b20249cd1c7796c7fa (patch)
tree8cab651afa0d57b99978e1ff472f5d19de4c0ec8 /src/lib/dcp_video_frame.cc
parentb1873c51b2e8265a01a8f0eced7fc3465f1677dc (diff)
Write more extensive information about frames, and hash the MXF packet rather than the J2K data.
Diffstat (limited to 'src/lib/dcp_video_frame.cc')
-rw-r--r--src/lib/dcp_video_frame.cc8
1 files changed, 4 insertions, 4 deletions
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<const Film> film, int frame) const
}
void
-EncodedData::write_hash (shared_ptr<const Film> film, int frame) const
+EncodedData::write_info (shared_ptr<const Film> 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.