13
0

to avoid deadlock in JACK1 scenarios, do not invoke AudioEngine::update_latencies() from update_latency_compensation() if called from a process thread

This commit is contained in:
Paul Davis 2019-10-28 16:55:29 -06:00
parent 6b654039fb
commit b97e2d5013

View File

@ -6534,6 +6534,9 @@ Session::update_latency_compensation (bool force_whole_graph)
* those cases this call will return until the backend latency
* callback is complete.
*/
if (!AudioEngine::instance()->in_process_thread()) {
_engine.update_latencies ();
}
} else {
DEBUG_TRACE (DEBUG::LatencyCompensation, "update_latency_compensation: directly apply to routes\n");
boost::shared_ptr<RouteList> r = routes.reader ();