aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlayerThread.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-30 17:23:49 +0100
committerMax Kellermann <max@duempel.org>2013-10-30 17:23:49 +0100
commit50dc98367ccb6155a15c440df5e32cf2b8b719ea (patch)
treebcdbaf115194ca473916f644c3492494280b8834 /src/PlayerThread.cxx
parentc4d3030d24d25f7fa8ea30fc108dc7df415fbc02 (diff)
downloadmpd-50dc98367ccb6155a15c440df5e32cf2b8b719ea.tar.gz
mpd-50dc98367ccb6155a15c440df5e32cf2b8b719ea.tar.xz
mpd-50dc98367ccb6155a15c440df5e32cf2b8b719ea.zip
PcmMix: use negative value instead of NaN for addition
Avoid NaN to allow -ffast-math.
Diffstat (limited to 'src/PlayerThread.cxx')
-rw-r--r--src/PlayerThread.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/PlayerThread.cxx b/src/PlayerThread.cxx
index cb45885d5..7105e48d3 100644
--- a/src/PlayerThread.cxx
+++ b/src/PlayerThread.cxx
@@ -36,8 +36,6 @@
#include "util/Domain.hxx"
#include "Log.hxx"
-#include <cmath>
-
#include <glib.h>
#include <string.h>
@@ -783,7 +781,7 @@ Player::PlayNextChunk()
chunk->mix_ratio = ((float)cross_fade_position)
/ cross_fade_chunks;
} else {
- chunk->mix_ratio = nan("");
+ chunk->mix_ratio = -1;
}
if (other_chunk->IsEmpty()) {