From a65f63747b4602cf227f7c0699b01bba5f7cd8df Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Oct 2013 16:50:34 +0100 Subject: CrossFade: use negative value for invalid mixramp_delay Avoid NaN to allow -ffast-math. --- src/PlayerThread.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/PlayerThread.cxx') diff --git a/src/PlayerThread.cxx b/src/PlayerThread.cxx index 79efe7a9d..cb45885d5 100644 --- a/src/PlayerThread.cxx +++ b/src/PlayerThread.cxx @@ -779,7 +779,7 @@ Player::PlayNextChunk() other_chunk->tag); other_chunk->tag = nullptr; - if (std::isnan(pc.cross_fade.mixramp_delay)) { + if (pc.cross_fade.mixramp_delay <= 0) { chunk->mix_ratio = ((float)cross_fade_position) / cross_fade_chunks; } else { -- cgit v1.2.3