Write more extensive information about frames, and hash the MXF packet rather than...
[dcpomatic.git] / src / lib / dcp_video_frame.cc
index 5df2d7a46b61b8219467c933671e505f138cd51d..4f3fda44ab759f6645f72f4385bd844a3fb5bde9 100644 (file)
@@ -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.