Use copy rather than symlinks on Windows.
authorCarl Hetherington <cth@carlh.net>
Sun, 22 Jul 2012 17:23:33 +0000 (18:23 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 22 Jul 2012 17:23:33 +0000 (18:23 +0100)
src/lib/j2k_still_encoder.cc

index f68bc589074617559cec7f2abcb4227c5df4bd70..e7b0c40da28356201d61df8b2c482ecdb52e9b13 100644 (file)
@@ -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 ();
        }