Hand-apply 96593d0ea6eb7b01ee97c8292c4546fc56d3da9d; only write metadata before encod...
authorCarl Hetherington <cth@carlh.net>
Mon, 15 Dec 2014 11:14:37 +0000 (11:14 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 15 Dec 2014 11:14:37 +0000 (11:14 +0000)
src/lib/film.cc
src/tools/dcpomatic.cc

index cc75a05585fa35625d4b121cee5963215ae7851c..af58dcefb5167db4359cc3ba19220981e73f8339 100644 (file)
@@ -269,11 +269,6 @@ Film::make_dcp ()
                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_GENERAL ("DCP-o-matic %1 git %2 using %3", dcpomatic_version, dcpomatic_git_commit, dependency_version_summary());
 
        {
index ae0c25591d642c99b247b04ab5a7dc83d7584be3..26dce99848b98d2eb3a6d176287463ce527b5cfc 100644 (file)
@@ -400,6 +400,10 @@ private:
                }
 
                try {
+                       /* 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.
+                       */
+                       _film->write_metadata ();
                        _film->make_dcp ();
                } catch (BadSettingError& e) {
                        error_dialog (this, wxString::Format (_("Bad setting for %s (%s)"), std_to_wx(e.setting()).data(), std_to_wx(e.what()).data()));