summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-03-27 12:05:13 +0000
committerCarl Hetherington <cth@carlh.net>2014-03-27 12:05:13 +0000
commitf54190a85a4723ab7fce4c845d3d30e7141624ae (patch)
tree286d7354bb059768128f04ab7ed2e430ae199fad
parent4438476ea07f171ef4909f0882b490dfcfb7094c (diff)
Auto-save metadata before starting a DCP encode.
Suggested-by: Markus Raab
-rw-r--r--ChangeLog6
-rw-r--r--src/lib/film.cc9
2 files changed, 12 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index f480d5948..e09f75255 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-03-27 Carl Hetherington <cth@carlh.net>
+
+ * Auto-save film metadata before starting DCP encode.
+
2014-03-25 Carl Hetherington <cth@carlh.net>
* Add support for downloading Doremi server certificates.
@@ -15,7 +19,7 @@
* Version 1.66.6 released.
2014-03-23 Carl Hetherington <cth@carlh.net>
-
+
* Attempt to fix format string specifier error on Windows.
* Version 1.66.5 released.
diff --git a/src/lib/film.cc b/src/lib/film.cc
index 04692fc1e..8bececf4f 100644
--- a/src/lib/film.cc
+++ b/src/lib/film.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2012-2013 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -246,7 +246,12 @@ Film::make_dcp ()
if (dcp_name().find ("/") != string::npos) {
throw BadSettingError (_("name"), _("cannot contain slashes"));
}
-
+
+ /* It seems to make sense to auto-save metadata here, since the make DCP may last
+ a long time, and crashes/power failures are moderately likely.
+ */
+ write_metadata ();
+
log()->log (String::compose ("DCP-o-matic %1 git %2 using %3", dcpomatic_version, dcpomatic_git_commit, dependency_version_summary()));
{