mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-07 15:49:42 +02:00
Bug 1649 - Freeze with Truncate Silence
This commit is contained in:
parent
b96f169e1f
commit
d549dccefd
@ -486,6 +486,10 @@ bool EffectTruncSilence::DoRemoval
|
||||
if (t->GetEndTime() < r->start)
|
||||
continue;
|
||||
|
||||
// Don't waste time cutting nothing.
|
||||
if( cutLen == 0.0 )
|
||||
continue;
|
||||
|
||||
double cutStart = (r->start + r->end - cutLen) / 2;
|
||||
double cutEnd = cutStart + cutLen;
|
||||
if (t->GetKind() == Track::Wave)
|
||||
|
Loading…
x
Reference in New Issue
Block a user