summaryrefslogtreecommitdiff
path: root/src/lib/dcp_video_frame.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-11-26 22:23:15 +0000
committerCarl Hetherington <cth@carlh.net>2013-11-26 22:23:15 +0000
commit72eedf0b240c71b9dbd27d1f95b109b48e3200a2 (patch)
treef01295128962cae9fa51e292b22afe066bb7c406 /src/lib/dcp_video_frame.cc
parentad0ddd25c94730bed174756a21c83a348c45687e (diff)
A whole load of UTF-8/-16 confusion fixes for Windows.
Diffstat (limited to 'src/lib/dcp_video_frame.cc')
-rw-r--r--src/lib/dcp_video_frame.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/dcp_video_frame.cc b/src/lib/dcp_video_frame.cc
index 25abd6f0d..679a0490e 100644
--- a/src/lib/dcp_video_frame.cc
+++ b/src/lib/dcp_video_frame.cc
@@ -59,12 +59,12 @@
#include "scaler.h"
#include "image.h"
#include "log.h"
+#include "cross.h"
#include "i18n.h"
using std::string;
using std::stringstream;
-using std::ofstream;
using std::cout;
using boost::shared_ptr;
using boost::lexical_cast;
@@ -379,8 +379,9 @@ 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.string().c_str());
+ FILE* h = fopen_boost (info, "w");
fin.write (h);
+ fclose (h);
}
/** Send this data to a socket.