1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-08 22:23:59 +01:00

Bug 1649 - Freeze with Truncate Silence

This commit is contained in:
James Crook
2017-05-20 18:31:06 +01:00
parent b96f169e1f
commit d549dccefd

View File

@@ -486,6 +486,10 @@ bool EffectTruncSilence::DoRemoval
if (t->GetEndTime() < r->start) if (t->GetEndTime() < r->start)
continue; continue;
// Don't waste time cutting nothing.
if( cutLen == 0.0 )
continue;
double cutStart = (r->start + r->end - cutLen) / 2; double cutStart = (r->start + r->end - cutLen) / 2;
double cutEnd = cutStart + cutLen; double cutEnd = cutStart + cutLen;
if (t->GetKind() == Track::Wave) if (t->GetKind() == Track::Wave)