diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-10-19 14:43:31 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-10-19 14:43:31 +0100 |
| commit | 6543d9a51b31ce24726187d9d1b018f05f09ef40 (patch) | |
| tree | 82298a333e5499409745bf44b60f326d0d81889e /src/lib/dcp_video_frame.cc | |
| parent | 8dddd2d1fef983f60df1f90984dd47f9e95256d6 (diff) | |
More string -> boost::filesystem::path.
Diffstat (limited to 'src/lib/dcp_video_frame.cc')
| -rw-r--r-- | src/lib/dcp_video_frame.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/dcp_video_frame.cc b/src/lib/dcp_video_frame.cc index 1c812cbf2..477bdae14 100644 --- a/src/lib/dcp_video_frame.cc +++ b/src/lib/dcp_video_frame.cc @@ -326,7 +326,7 @@ EncodedData::EncodedData (int s) } -EncodedData::EncodedData (string file) +EncodedData::EncodedData (boost::filesystem::path file) { _size = boost::filesystem::file_size (file); _data = new uint8_t[_size]; @@ -358,7 +358,7 @@ EncodedData::~EncodedData () void EncodedData::write (shared_ptr<const Film> film, int frame, Eyes eyes) const { - string const tmp_j2c = film->j2c_path (frame, eyes, true); + boost::filesystem::path const tmp_j2c = film->j2c_path (frame, eyes, true); FILE* f = fopen (tmp_j2c.c_str (), N_("wb")); @@ -369,7 +369,7 @@ EncodedData::write (shared_ptr<const Film> film, int frame, Eyes eyes) const fwrite (_data, 1, _size, f); fclose (f); - string const real_j2c = film->j2c_path (frame, eyes, false); + boost::filesystem::path const real_j2c = film->j2c_path (frame, eyes, false); /* Rename the file from foo.j2c.tmp to foo.j2c now that it is complete */ boost::filesystem::rename (tmp_j2c, real_j2c); @@ -378,7 +378,7 @@ EncodedData::write (shared_ptr<const Film> film, int frame, Eyes eyes) const void EncodedData::write_info (shared_ptr<const Film> film, int frame, Eyes eyes, libdcp::FrameInfo fin) const { - string const info = film->info_path (frame, eyes); + boost::filesystem::path const info = film->info_path (frame, eyes); ofstream h (info.c_str()); fin.write (h); } |
