aboutsummaryrefslogtreecommitdiffstats
path: root/src/CrossFade.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/CrossFade.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CrossFade.cxx b/src/CrossFade.cxx
index 76820fb45..098987d19 100644
--- a/src/CrossFade.cxx
+++ b/src/CrossFade.cxx
@@ -108,7 +108,7 @@ CrossFadeSettings::Calculate(float total_time,
chunks_f = (float)af.GetTimeToSize() / (float)CHUNK_SIZE;
- if (std::isnan(mixramp_delay) || !mixramp_start || !mixramp_prev_end) {
+ if (mixramp_delay <= 0 || !mixramp_start || !mixramp_prev_end) {
chunks = (chunks_f * duration + 0.5);
} else {
/* Calculate mixramp overlap. */