Fix vari-speed and non-locked slave modes
[ardour.git] / libs / ardour / session_process.cc
index 766ce395e51fc16edc60afbd46ba93526bcaf6e3..7788eb2b978fd260aa16bc0a5dd6d8e4480d0eba 100644 (file)
@@ -674,7 +674,7 @@ Session::follow_slave (pframes_t nframes)
        }
 
 
-       if (_slave_state == Running && !non_realtime_work_pending()) {
+       if (_slave_state == Running && 0 == (post_transport_work () & ~PostTransportSpeed)) {
                /* speed is set, we're locked, and good to go */
                return true;
        }