summaryrefslogtreecommitdiff
path: root/libs/ardour/session_state.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-10-26 01:06:04 +0200
committerRobin Gareus <robin@gareus.org>2019-10-26 01:06:04 +0200
commitc398576e4a18d3b3a76059ae6d16776cc5e820db (patch)
treeb19a6ac60f787382e40fa7ca24af56321d2c5129 /libs/ardour/session_state.cc
parent35788fbaaaabcb9555a08c100f1fb988295d36c3 (diff)
Fix latency compensation race-condition
Remove need for explicit `initialize_latencies` call that used to be called from GUI-thread post_engine_init(), as well as Session::engine_running(). Further reduce calls, `graph_reordered` implies a latency-update and fix ordering issue. update_latency_compensation() must be called *after* resort_routes().
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r--libs/ardour/session_state.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index ebb3dd4292..dacda4d9ae 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -365,10 +365,6 @@ Session::post_engine_init ()
_state_of_the_state = StateOfTheState (_state_of_the_state & ~(CannotSave | Dirty));
- /* update latencies */
-
- initialize_latencies ();
-
_locations->added.connect_same_thread (*this, boost::bind (&Session::location_added, this, _1));
_locations->removed.connect_same_thread (*this, boost::bind (&Session::location_removed, this, _1));
_locations->changed.connect_same_thread (*this, boost::bind (&Session::locations_changed, this));