diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-01-23 20:49:26 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-01-23 20:49:26 +0000 |
| commit | 0b760c0526b0b9d13def519ab8afba1e511d8111 (patch) | |
| tree | 3be59118ea7e60ded5527b4ba653143fad1fa166 /src/lib/dcp_video_frame.cc | |
| parent | 420adb1fd2910fd24eb84be98169afc209f76a0e (diff) | |
Try to fix up paths for video MXFs, hashes and temporarily-stored frames.
Diffstat (limited to 'src/lib/dcp_video_frame.cc')
| -rw-r--r-- | src/lib/dcp_video_frame.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/dcp_video_frame.cc b/src/lib/dcp_video_frame.cc index c3f0fed03..5df2d7a46 100644 --- a/src/lib/dcp_video_frame.cc +++ b/src/lib/dcp_video_frame.cc @@ -407,27 +407,27 @@ EncodedData::~EncodedData () void EncodedData::write (shared_ptr<const Film> film, int frame) const { - string const tmp_j2k = film->frame_out_path (frame, true); + string const tmp_j2c = film->j2c_path (frame, true); - FILE* f = fopen (tmp_j2k.c_str (), "wb"); + FILE* f = fopen (tmp_j2c.c_str (), "wb"); if (!f) { - throw WriteFileError (tmp_j2k, errno); + throw WriteFileError (tmp_j2c, errno); } fwrite (_data, 1, _size, f); fclose (f); - string const real_j2k = film->frame_out_path (frame, false); + string const real_j2c = film->j2c_path (frame, false); /* Rename the file from foo.j2c.tmp to foo.j2c now that it is complete */ - boost::filesystem::rename (tmp_j2k, real_j2k); + boost::filesystem::rename (tmp_j2c, real_j2c); } void EncodedData::write_hash (shared_ptr<const Film> film, int frame) const { - string const hash = film->hash_out_path (frame, false); + string const hash = film->hash_path (frame); ofstream h (hash.c_str()); h << md5_digest (_data, _size) << "\n"; } |
