aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlayerThread.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-30 16:50:34 +0100
committerMax Kellermann <max@duempel.org>2013-10-30 16:50:34 +0100
commita65f63747b4602cf227f7c0699b01bba5f7cd8df (patch)
treeef8d37fe937904634424e942643d987f0ee8bde3 /src/PlayerThread.cxx
parenta21edddf277458cbff816dcbfced3a849f380f17 (diff)
downloadmpd-a65f63747b4602cf227f7c0699b01bba5f7cd8df.tar.gz
mpd-a65f63747b4602cf227f7c0699b01bba5f7cd8df.tar.xz
mpd-a65f63747b4602cf227f7c0699b01bba5f7cd8df.zip
CrossFade: use negative value for invalid mixramp_delay
Avoid NaN to allow -ffast-math.
Diffstat (limited to '')
-rw-r--r--src/PlayerThread.cxx2
1 files changed, 1 insertions, 1 deletions
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 {