Don't show DSP stats of inserts that don't collect them.
[ardour.git] / gtk2_ardour / mixer_ui.cc
index 69742737bb0406a4e05c3ef8a57219e11231a4f9..c9163165337e6d3d9de9c548cc21b2df6cebca5b 100644 (file)
@@ -1602,18 +1602,7 @@ void
 Mixer_UI::initial_track_display ()
 {
        StripableList sl;
-
-       boost::shared_ptr<RouteList> routes = _session->get_routes();
-
-       for (RouteList::iterator r = routes->begin(); r != routes->end(); ++r) {
-               sl.push_back (*r);
-       }
-
-       VCAList vcas = _session->vca_manager().vcas();
-
-       for (VCAList::iterator v = vcas.begin(); v != vcas.end(); ++v) {
-               sl.push_back (boost::dynamic_pointer_cast<Stripable> (*v));
-       }
+       _session->get_stripables (sl);
 
        sl.sort (PresentationInfoMixerSorter());