summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorJan Holthuis <jholthuis@mixxx.org>2021-07-01 22:32:04 +0200
committerJan Holthuis <jholthuis@mixxx.org>2021-07-01 22:32:44 +0200
commite4f9b2283bfb186edf3866232c4c595703c80191 (patch)
treeb37bbbe4a42fa6805da1f534d58c6747bf06824b /src/audio
parentfb2be0bdefa54d5fad9e856979183ec65cbf7868 (diff)
FramePos: Use util_isnan to fix broken NaN detection
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/frame.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audio/frame.h b/src/audio/frame.h
index e15966a8fd..44097d4a9f 100644
--- a/src/audio/frame.h
+++ b/src/audio/frame.h
@@ -5,6 +5,7 @@
#include <limits>
#include "engine/engine.h"
+#include "util/fpclassify.h"
namespace mixxx {
namespace audio {
@@ -37,7 +38,7 @@ class FramePos final {
}
bool isValid() const {
- return !std::isnan(m_framePosition);
+ return !util_isnan(m_framePosition);
}
void setValue(value_t framePosition) {