mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Fix potential deadlock on session-load
This commit is contained in:
parent
e4d6e4a87f
commit
b52bf1a42c
1 changed files with 5 additions and 2 deletions
|
|
@ -818,8 +818,10 @@ Session::setup_ltc ()
|
||||||
{
|
{
|
||||||
Glib::Threads::Mutex::Lock lm (AudioEngine::instance()->process_lock ());
|
Glib::Threads::Mutex::Lock lm (AudioEngine::instance()->process_lock ());
|
||||||
_ltc_input->ensure_io (ChanCount (DataType::AUDIO, 1), true, this);
|
_ltc_input->ensure_io (ChanCount (DataType::AUDIO, 1), true, this);
|
||||||
|
// TODO use auto-connect thread somehow (needs a route currently)
|
||||||
|
// see note in Session::auto_connect_thread_run() why process lock is needed.
|
||||||
|
reconnect_ltc_input ();
|
||||||
}
|
}
|
||||||
reconnect_ltc_input ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state_tree && (child = find_named_node (*state_tree->root(), X_("LTC Out"))) != 0) {
|
if (state_tree && (child = find_named_node (*state_tree->root(), X_("LTC Out"))) != 0) {
|
||||||
|
|
@ -828,8 +830,9 @@ Session::setup_ltc ()
|
||||||
{
|
{
|
||||||
Glib::Threads::Mutex::Lock lm (AudioEngine::instance()->process_lock ());
|
Glib::Threads::Mutex::Lock lm (AudioEngine::instance()->process_lock ());
|
||||||
_ltc_output->ensure_io (ChanCount (DataType::AUDIO, 1), true, this);
|
_ltc_output->ensure_io (ChanCount (DataType::AUDIO, 1), true, this);
|
||||||
|
// TODO use auto-connect thread
|
||||||
|
reconnect_ltc_output ();
|
||||||
}
|
}
|
||||||
reconnect_ltc_output ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* fix up names of LTC ports because we don't want the normal
|
/* fix up names of LTC ports because we don't want the normal
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue