more solo model work, including a GUI fix for mute button state when the route is...
[ardour.git] / libs / ardour / strip_silence.cc
index 21e1ad5450ade46f730d378c4cf291a8e1fc22ee..21faeded6840e16e3b79efc7f2eaaadd8934f00f 100644 (file)
@@ -56,15 +56,6 @@ StripSilence::run (boost::shared_ptr<Region> r)
                return -1;
        }
 
-        /* we don't care about this but we need to fill out the fields
-           anyway. XXX should really be a default constructor for ITT
-        */
-
-        itt.done = false;
-        itt.cancel = false;
-        itt.progress = 0.0;
-        itt.thread = 0;
-
        /* find periods of silence in the region */
        std::list<std::pair<frameoffset_t, framecnt_t> > const silence =
                region->find_silence (dB_to_coefficient (_threshold), _minimum_length, itt);
@@ -113,7 +104,7 @@ StripSilence::run (boost::shared_ptr<Region> r)
                         copy = boost::dynamic_pointer_cast<AudioRegion> (RegionFactory::create 
                                                                          (region, start, plist));
 
-                        copy->set_name (session.new_region_name (region->name ()));
+                        copy->set_name (RegionFactory::new_region_name (region->name ()));
 
                         std::cerr << "New silent delineated region called " << copy->name()
                                   << " @ " << copy->start() << " length = " << copy->length() << " pos = " <<