fix crash when copy'ing latent plugins
[ardour.git] / libs / ardour / strip_silence.cc
index b0109d5989b83b171678b442ef1ef4ed1eb40459..3141f422a80e28ccec22e2b25e571c0b3af788ed 100644 (file)
@@ -121,7 +121,7 @@ StripSilence::run (boost::shared_ptr<Region> r, Progress* progress)
 
                copy->set_name (RegionFactory::new_region_name (region->name ()));
 
-               framecnt_t const f = std::min (_fade_length, (i->second - i->first));
+               framecnt_t const f = std::min (_fade_length, (i->second - i->first) / 2);
 
                if (f > 0) {
                        copy->set_fade_in_active (true);