aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlayerThread.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/PlayerThread.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/PlayerThread.cxx b/src/PlayerThread.cxx
index 6b05dd97c..44534a7d8 100644
--- a/src/PlayerThread.cxx
+++ b/src/PlayerThread.cxx
@@ -37,6 +37,8 @@ extern "C" {
#include "idle.h"
}
+#include <cmath>
+
#include <glib.h>
#undef G_LOG_DOMAIN
@@ -759,7 +761,7 @@ play_next_chunk(struct player *player)
other_chunk->tag);
other_chunk->tag = NULL;
- if (isnan(pc->mixramp_delay_seconds)) {
+ if (std::isnan(pc->mixramp_delay_seconds)) {
chunk->mix_ratio = ((float)cross_fade_position)
/ player->cross_fade_chunks;
} else {