diff options
author | Max Kellermann <max@duempel.org> | 2013-10-30 17:23:49 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-30 17:23:49 +0100 |
commit | 50dc98367ccb6155a15c440df5e32cf2b8b719ea (patch) | |
tree | bcdbaf115194ca473916f644c3492494280b8834 /src/PlayerThread.cxx | |
parent | c4d3030d24d25f7fa8ea30fc108dc7df415fbc02 (diff) | |
download | mpd-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 '')
-rw-r--r-- | src/PlayerThread.cxx | 4 |
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()) { |