diff options
author | Max Kellermann <max@duempel.org> | 2010-02-17 07:07:00 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-02-17 07:07:00 +0100 |
commit | c05e6a1275621421eb0a7c3112b0401fa458841e (patch) | |
tree | f4fc40e299335245977a9ee4b82f269bbb96b8b8 /src/queue.h | |
parent | b21e4d9a589c02bffed9a1793d9fc2dc52044c12 (diff) | |
download | mpd-c05e6a1275621421eb0a7c3112b0401fa458841e.tar.gz mpd-c05e6a1275621421eb0a7c3112b0401fa458841e.tar.xz mpd-c05e6a1275621421eb0a7c3112b0401fa458841e.zip |
replay_gain_info: use INFINITY to mark undefined values
The previous patch not only moved code, it also changed the check.
Negative gain values seem to be valid after all, there just was the
"magic" value 0.0 which means "not available". This patch changes the
"magic" value to "INFINITY", and uses the C99 function isinf() to
check. It might have been a better idea to use "NAN", but the "NAN"
macro is a GNU extension.
Diffstat (limited to 'src/queue.h')
0 files changed, 0 insertions, 0 deletions