diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-12-29 00:16:22 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-12-29 00:16:22 +0000 |
| commit | 6219882009ffd499b4b8000697b17a659c834212 (patch) | |
| tree | 54e8270f3520a72f636a679c98ccc43ee0c19fac /src/lib/dcp_video_frame.cc | |
| parent | 4014143952f791973d94c5cfb5bec9e97d1462b7 (diff) | |
Fix a number of missing fopen_boost replacements; might fix problems with adding content from non-Latin directories.
Diffstat (limited to 'src/lib/dcp_video_frame.cc')
| -rw-r--r-- | src/lib/dcp_video_frame.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dcp_video_frame.cc b/src/lib/dcp_video_frame.cc index 685e24d63..78d73ad00 100644 --- a/src/lib/dcp_video_frame.cc +++ b/src/lib/dcp_video_frame.cc @@ -352,7 +352,7 @@ EncodedData::EncodedData (boost::filesystem::path file) _size = boost::filesystem::file_size (file); _data = new uint8_t[_size]; - FILE* f = fopen (file.string().c_str(), N_("rb")); + FILE* f = fopen_boost (file, "rb"); if (!f) { throw FileError (_("could not open file for reading"), file); } @@ -381,7 +381,7 @@ EncodedData::write (shared_ptr<const Film> film, int frame, Eyes eyes) const { boost::filesystem::path const tmp_j2c = film->j2c_path (frame, eyes, true); - FILE* f = fopen (tmp_j2c.string().c_str (), N_("wb")); + FILE* f = fopen_boost (tmp_j2c, "wb"); if (!f) { throw WriteFileError (tmp_j2c, errno); |
