summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-10-19 20:02:35 +0100
committerCarl Hetherington <cth@carlh.net>2013-10-19 20:02:35 +0100
commit3ce86aff3cedcc856b86a5f1430dd26097ebbaf6 (patch)
treeeba91fe274a221268b25eb3072340d63530cf8ed
parentbd4193662963396539e6929caed0793978fca29b (diff)
Some Win32 fixes.
-rw-r--r--src/lib/dcp_video_frame.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/dcp_video_frame.cc b/src/lib/dcp_video_frame.cc
index 477bdae14..464cf672f 100644
--- a/src/lib/dcp_video_frame.cc
+++ b/src/lib/dcp_video_frame.cc
@@ -331,7 +331,7 @@ EncodedData::EncodedData (boost::filesystem::path file)
_size = boost::filesystem::file_size (file);
_data = new uint8_t[_size];
- FILE* f = fopen (file.c_str(), N_("rb"));
+ FILE* f = fopen (file.string().c_str(), N_("rb"));
if (!f) {
throw FileError (_("could not open file for reading"), file);
}
@@ -360,7 +360,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.c_str (), N_("wb"));
+ FILE* f = fopen (tmp_j2c.string().c_str (), N_("wb"));
if (!f) {
throw WriteFileError (tmp_j2c, errno);
@@ -379,7 +379,7 @@ void
EncodedData::write_info (shared_ptr<const Film> film, int frame, Eyes eyes, libdcp::FrameInfo fin) const
{
boost::filesystem::path const info = film->info_path (frame, eyes);
- ofstream h (info.c_str());
+ ofstream h (info.string().c_str());
fin.write (h);
}