diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-03-12 22:18:00 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-03-12 22:18:00 +0000 |
| commit | 72234d49c16bad30d66256dd6e82d1359f4f830b (patch) | |
| tree | ea595b59aa2b1d3125f8814de8266c03c0b6078e /src | |
| parent | 0a7004ab20d6bc3d20c1956df355384fa7f2da30 (diff) | |
Fix previous.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/writer.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/writer.cc b/src/lib/writer.cc index 6ca56ec4e..33f574f56 100644 --- a/src/lib/writer.cc +++ b/src/lib/writer.cc @@ -275,7 +275,8 @@ Writer::finish () to /= N_("video.mxf"); boost::system::error_code ec; - if (boost::filesystem::create_hard_link (from, to, ec)) { + boost::filesystem::create_hard_link (from, to, ec); + if (ec) { /* hard link failed; copy instead */ boost::filesystem::copy_file (from, to); } |
