MixerScene: handle edge-case with midi-cc/bender controllables
This commit is contained in:
parent
effc209070
commit
9e11ef4f39
|
@ -151,7 +151,12 @@ Controllable::registered_controllables ()
|
||||||
ControllableSet rv;
|
ControllableSet rv;
|
||||||
Glib::Threads::RWLock::ReaderLock lm (registry_lock);
|
Glib::Threads::RWLock::ReaderLock lm (registry_lock);
|
||||||
for (auto const& i : registry) {
|
for (auto const& i : registry) {
|
||||||
rv.insert (i->shared_from_this ());
|
try {
|
||||||
|
rv.insert (i->shared_from_this ());
|
||||||
|
} catch (...) {
|
||||||
|
/* ignore boost::bad_weak_ptr */
|
||||||
|
// cout << "No shared ctrl: " << i->name() << "\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user