Keep "correct" hashes in dcpomatic2_map rather than recalculating them (#2555).
[dcpomatic.git] / src / lib / map_cli.cc
index 487d1690d846b756a68bad358a33676ca0a43c28..c7f21be4a0ed85e8a00147e256fca4f72222a9d3 100644 (file)
@@ -246,7 +246,7 @@ map_cli(int argc, char* argv[], std::function<void (string)> out)
                                        throw CopyError(String::compose("Could not copy asset %1: %2", input_path.string(), ec.message()));
                                }
                        }
-                       (*iter)->set_file(output_path);
+                       (*iter)->set_file_preserving_hash(output_path);
                        already_copied.push_back(asset_id);
                } else {
                        boost::system::error_code ec;