Commit cc06400d authored by Eric Wong's avatar Eric Wong

fix a logic error in flacParseReplayGain and also a gcc 2.95 compile error

git-svn-id: https://svn.musicpd.org/mpd/trunk@2935 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 37f2a0a8
...@@ -327,15 +327,15 @@ int flacFindVorbisCommentFloat(const FLAC__StreamMetadata * block, char * cmnt, ...@@ -327,15 +327,15 @@ int flacFindVorbisCommentFloat(const FLAC__StreamMetadata * block, char * cmnt,
/* replaygain stuff by AliasMrJones */ /* replaygain stuff by AliasMrJones */
void flacParseReplayGain(const FLAC__StreamMetadata *block, FlacData * data) { void flacParseReplayGain(const FLAC__StreamMetadata *block, FlacData * data) {
if(NULL == data->replayGainInfo) { int found = 0;
if(NULL != data->replayGainInfo) {
freeReplayGainInfo(data->replayGainInfo); freeReplayGainInfo(data->replayGainInfo);
data->replayGainInfo = NULL; data->replayGainInfo = NULL;
} }
data->replayGainInfo = newReplayGainInfo(); data->replayGainInfo = newReplayGainInfo();
int found = 0;
found &= flacFindVorbisCommentFloat(block,"replaygain_album_gain", found &= flacFindVorbisCommentFloat(block,"replaygain_album_gain",
&data->replayGainInfo->albumGain); &data->replayGainInfo->albumGain);
found &= flacFindVorbisCommentFloat(block,"replaygain_album_peak", found &= flacFindVorbisCommentFloat(block,"replaygain_album_peak",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment