aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2005-02-07 03:55:29 +0000
committerEric Wong <normalperson@yhbt.net>2005-02-07 03:55:29 +0000
commitcc06400df24fc1b007aad851d11fb3408c52f772 (patch)
treea95b22d8e683135df343201d3196be1ed69f1a6e /src
parent37f2a0a86c41b7fe2dc10d3ab424c7a5b1505473 (diff)
downloadmpd-cc06400df24fc1b007aad851d11fb3408c52f772.tar.gz
mpd-cc06400df24fc1b007aad851d11fb3408c52f772.tar.xz
mpd-cc06400df24fc1b007aad851d11fb3408c52f772.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/inputPlugins/flac_plugin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inputPlugins/flac_plugin.c b/src/inputPlugins/flac_plugin.c
index 11453c51c..a9e5a8e9e 100644
--- a/src/inputPlugins/flac_plugin.c
+++ b/src/inputPlugins/flac_plugin.c
@@ -327,15 +327,15 @@ int flacFindVorbisCommentFloat(const FLAC__StreamMetadata * block, char * cmnt,
/* replaygain stuff by AliasMrJones */
void flacParseReplayGain(const FLAC__StreamMetadata *block, FlacData * data) {
- if(NULL == data->replayGainInfo) {
+ int found = 0;
+
+ if(NULL != data->replayGainInfo) {
freeReplayGainInfo(data->replayGainInfo);
data->replayGainInfo = NULL;
}
data->replayGainInfo = newReplayGainInfo();
- int found = 0;
-
found &= flacFindVorbisCommentFloat(block,"replaygain_album_gain",
&data->replayGainInfo->albumGain);
found &= flacFindVorbisCommentFloat(block,"replaygain_album_peak",