mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 22:25:46 +01:00
Don't iterate in 'ARDOUR::Route::get_control()' unless a ReaderLock was successfully obtained
This commit is contained in:
parent
e59e8f6ab9
commit
0689a2976e
1 changed files with 1 additions and 1 deletions
|
|
@ -3785,7 +3785,7 @@ Route::get_control (const Evoral::Parameter& param)
|
|||
|
||||
/* maybe one of our processors does or ... */
|
||||
|
||||
Glib::Threads::RWLock::ReaderLock rm (_processor_lock, Glib::Threads::TRY_LOCK);
|
||||
Glib::Threads::RWLock::ReaderLock rm (_processor_lock);
|
||||
for (ProcessorList::iterator i = _processors.begin(); i != _processors.end(); ++i) {
|
||||
if ((c = boost::dynamic_pointer_cast<AutomationControl>((*i)->control (param))) != 0) {
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue