diff options
Diffstat (limited to '')
-rw-r--r-- | src/replay_gain_info.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/replay_gain_info.h b/src/replay_gain_info.h index 9fcae22ab..2465a250e 100644 --- a/src/replay_gain_info.h +++ b/src/replay_gain_info.h @@ -23,6 +23,7 @@ #include "check.h" #include <stdbool.h> +#include <math.h> enum replay_gain_mode { REPLAY_GAIN_OFF = -1, @@ -54,7 +55,7 @@ replay_gain_info_free(struct replay_gain_info *info); static inline bool replay_gain_tuple_defined(const struct replay_gain_tuple *tuple) { - return tuple->gain > 0.0; + return !isinf(tuple->gain); } float |