projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2504ba1
)
Use copy rather than symlinks on Windows.
author
Carl Hetherington
<cth@carlh.net>
Sun, 22 Jul 2012 17:23:33 +0000
(18:23 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 22 Jul 2012 17:23:33 +0000
(18:23 +0100)
src/lib/j2k_still_encoder.cc
patch
|
blob
|
history
diff --git
a/src/lib/j2k_still_encoder.cc
b/src/lib/j2k_still_encoder.cc
index f68bc589074617559cec7f2abcb4227c5df4bd70..e7b0c40da28356201d61df8b2c482ecdb52e9b13 100644
(file)
--- 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 ();
}