summaryrefslogtreecommitdiff
path: root/src/lib
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 /src/lib
parent4438476ea07f171ef4909f0882b490dfcfb7094c (diff)
Auto-save metadata before starting a DCP encode.
Suggested-by: Markus Raab
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/film.cc9
1 files changed, 7 insertions, 2 deletions
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()));
{