From 3ce86aff3cedcc856b86a5f1430dd26097ebbaf6 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 19 Oct 2013 20:02:35 +0100 Subject: Some Win32 fixes. --- src/lib/dcp_video_frame.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib') 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 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 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); } -- cgit v1.2.3