From 44bb8caa658357a5c16bef1187bced8f26aacf1d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 5 May 2022 01:23:38 +0200 Subject: [PATCH] Use new Route fed-by API (2/2) --- libs/surfaces/osc/osc.cc | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index e813a98564..030c0451df 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -6613,17 +6613,11 @@ OSC::cue_get_sorted_stripables(boost::shared_ptr aux, uint32_t id, lo { Sorted sorted; -#if 0 boost::shared_ptr aux_rt = boost::dynamic_pointer_cast (aux); - Route::FedBy fed_by = aux_rt->fed_by(); - for (Route::FedBy::iterator i = fed_by.begin(); i != fed_by.end(); ++i) { - if (i->sends_only) { - boost::shared_ptr s (i->r.lock()); - sorted.push_back (s); - s->DropReferences.connect (*this, MISSING_INVALIDATOR, boost::bind (&OSC::_cue_set, this, id, addr), this); - } + for (auto const& s : aux_rt->signal_sources (true)) { + sorted.push_back (s); + s->DropReferences.connect (*this, MISSING_INVALIDATOR, boost::bind (&OSC::_cue_set, this, id, addr), this); } -#endif sort (sorted.begin(), sorted.end(), StripableByPresentationOrder()); return sorted;