summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-09-21 15:02:45 +0000
committerCarl Hetherington <carl@carlh.net>2010-09-21 15:02:45 +0000
commite6ecd36b266c173a65371d50cde5b955072a98ff (patch)
tree47f29b9f8366b93ae54e77a83bbe890ce3147ba4 /libs
parentf7d973476cc4a3ff3a67b20f109b98f5ccd14339 (diff)
Revert previous commit, adding comment as to why.
git-svn-id: svn://localhost/ardour2/branches/3.0@7822 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/session.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc
index efd548fe3b..24c6d393ed 100644
--- a/libs/ardour/session.cc
+++ b/libs/ardour/session.cc
@@ -1095,6 +1095,14 @@ Session::maybe_enable_record ()
g_atomic_int_set (&_record_status, Enabled);
+ /* This function is currently called from somewhere other than an RT thread.
+ This save_state() call therefore doesn't impact anything. Doing it here
+ means that we save pending state of which sources the next record will use,
+ which gives us some chance of recovering from a crash during the record.
+ */
+
+ save_state ("", true);
+
if (_transport_speed) {
if (!config.get_punch_in()) {
enable_record ();