mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 06:06:25 +01:00
Prevent excessive latency recomputations
Session::update_latency() may be called multiple times with the process-lock being held.
This commit is contained in:
parent
d6242f35f5
commit
09f9cd377d
1 changed files with 3 additions and 0 deletions
|
|
@ -7020,6 +7020,9 @@ Session::auto_connect_thread_run ()
|
||||||
*/
|
*/
|
||||||
while (g_atomic_int_and (&_latency_recompute_pending, 0)) {
|
while (g_atomic_int_and (&_latency_recompute_pending, 0)) {
|
||||||
update_latency_compensation (true, false);
|
update_latency_compensation (true, false);
|
||||||
|
if (g_atomic_int_get (&_latency_recompute_pending)) {
|
||||||
|
Glib::usleep (1000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue