Revert previous commit, adding comment as to why.
authorCarl Hetherington <carl@carlh.net>
Tue, 21 Sep 2010 15:02:45 +0000 (15:02 +0000)
committerCarl Hetherington <carl@carlh.net>
Tue, 21 Sep 2010 15:02:45 +0000 (15:02 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@7822 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/session.cc

index efd548fe3b39e1ae0ac29e1f66680c5b230b5199..24c6d393ed577ead0999fa464491376791c8d1f8 100644 (file)
@@ -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 ();