Back-port tim mayberry's fixes for import; fix JACK slaving to never pay attention...
[ardour.git] / libs / ardour / session_transport.cc
index 635e32de627dcd09b5a9f8c00098f0aba92b5e3b..d55c217bf5d22a3247c24b3c3cd13eef20424c93 100644 (file)
@@ -29,6 +29,7 @@
 #include <glibmm/thread.h>
 #include <pbd/pthread_utils.h>
 #include <pbd/memento_command.h>
+#include <pbd/stacktrace.h>
 
 #include <midi++/mmc.h>
 #include <midi++/port.h>
@@ -478,7 +479,9 @@ Session::non_realtime_stop (bool abort, int on_entry, bool& finished)
                
        }
 
-       PositionChanged (_transport_frame); /* EMIT SIGNAL */
+        nframes_t tf = _transport_frame;
+
+        PositionChanged (tf); /* EMIT SIGNAL */
        TransportStateChange (); /* EMIT SIGNAL */
 
        /* and start it up again if relevant */