summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-07-22 18:23:33 +0100
committerCarl Hetherington <cth@carlh.net>2012-07-22 18:23:33 +0100
commit62bb8acd0a3655f4526699031c681d43373e897c (patch)
treea23be2ea4f6928cb7880e40e073f02694850555e /src
parent2504ba151b6a06555c3421dc8222ab896fff05a9 (diff)
Use copy rather than symlinks on Windows.
Diffstat (limited to 'src')
-rw-r--r--src/lib/j2k_still_encoder.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/j2k_still_encoder.cc b/src/lib/j2k_still_encoder.cc
index f68bc5890..e7b0c40da 100644
--- a/src/lib/j2k_still_encoder.cc
+++ b/src/lib/j2k_still_encoder.cc
@@ -66,7 +66,12 @@ J2KStillEncoder::process_video (shared_ptr<Image> yuv, int frame)
for (int i = 2; i <= (_fs->still_duration * ImageMagickDecoder::static_frames_per_second()); ++i) {
if (!boost::filesystem::exists (_opt->frame_out_path (i, false))) {
string const link = _opt->frame_out_path (i, false);
+#ifdef DVDOMATIC_POSIX
symlink (real.c_str(), link.c_str());
+#endif
+#ifdef DVDOMATIC_WINDOWS
+ filesystem::copy_file (real, link);
+#endif
}
frame_done ();
}