X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Froute_ui.cc;h=b2fdcaf7d4b9c1e9c7570db31c33ee4b14fa496d;hb=1ae094813858a2b8cf5b08569edcb9b15d910729;hp=998385f66b1e3263365bc60efd65e93da54f24f8;hpb=c5619a0f981161b441da1216de1f9c2e26190768;p=ardour.git diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc index 998385f66b..b2fdcaf7d4 100644 --- a/gtk2_ardour/route_ui.cc +++ b/gtk2_ardour/route_ui.cc @@ -74,7 +74,7 @@ RouteUI::RouteUI (boost::shared_ptr rt, ARDOUR::Session& sess, co if (is_track()) { boost::shared_ptr t = boost::dynamic_pointer_cast(_route); - t->diskstream().RecordEnableChanged.connect (mem_fun (*this, &RouteUI::route_rec_enable_changed)); + t->diskstream()->RecordEnableChanged.connect (mem_fun (*this, &RouteUI::route_rec_enable_changed)); _session.RecordStateChanged.connect (mem_fun (*this, &RouteUI::session_rec_enable_changed)); @@ -733,7 +733,7 @@ void RouteUI::route_removed () { ENSURE_GUI_THREAD(mem_fun (*this, &RouteUI::route_removed)); - + cerr << "Route UI @ " << this << " destroyed by impending end of route\n"; delete this; } @@ -905,15 +905,15 @@ RouteUI::audio_track() const return dynamic_cast(_route.get()); } -Diskstream* +boost::shared_ptr RouteUI::get_diskstream () const { boost::shared_ptr t; if ((t = boost::dynamic_pointer_cast(_route)) != 0) { - return &t->diskstream(); + return t->diskstream(); } else { - return 0; + return boost::shared_ptr ((Diskstream*) 0); } }