MixerScene: handle edge-case with midi-cc/bender controllables

This commit is contained in:
Robin Gareus
2022-07-07 16:04:56 +02:00
parent effc209070
commit 9e11ef4f39

View File

@@ -151,7 +151,12 @@ Controllable::registered_controllables ()
ControllableSet rv;
Glib::Threads::RWLock::ReaderLock lm (registry_lock);
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;
}