Return playhead to last start position when aborting capture
authorColin Fletcher <colin.m.fletcher@googlemail.com>
Sat, 2 Aug 2014 11:26:04 +0000 (12:26 +0100)
committerColin Fletcher <colin.m.fletcher@googlemail.com>
Sat, 13 Sep 2014 14:27:30 +0000 (15:27 +0100)
libs/ardour/session_transport.cc

index 2cd8de49bfda2354514c4eee0b2597e701582fa6..dbf6af6f1ee814c3bc4fee40389947a68b09fbd2 100644 (file)
@@ -558,7 +558,7 @@ Session::non_realtime_stop (bool abort, int on_entry, bool& finished)
        }
 
        bool const auto_return_enabled =
-               (!config.get_external_sync() && config.get_auto_return());
+               (!config.get_external_sync() && (config.get_auto_return() || abort));
 
        if (auto_return_enabled ||
            (ptw & PostTransportLocate) ||
@@ -618,6 +618,10 @@ Session::non_realtime_stop (bool abort, int on_entry, bool& finished)
                                                _transport_frame = _last_roll_location;
                                                do_locate = true;
                                        }
+                               } else if (abort) {
+
+                                       _transport_frame = _last_roll_location;
+                                       do_locate = true;
                                }
                        }