Keep "correct" hashes in dcpomatic2_map rather than recalculating them (#2555).
authorCarl Hetherington <cth@carlh.net>
Tue, 20 Jun 2023 20:07:50 +0000 (22:07 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 28 Jun 2023 23:50:35 +0000 (01:50 +0200)
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;