diff options
author | Max Kellermann <max@duempel.org> | 2013-10-25 19:05:49 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-25 19:12:46 +0200 |
commit | d6e28c42e5c2bdab73d3553b21a09fa28dabd037 (patch) | |
tree | 6b7e43d0b777b3be149c86e853debef3cbd49826 /src/decoder/VorbisComments.cxx | |
parent | 6d475c40de567d778fa6f96c379687a8bf83f82b (diff) | |
download | mpd-d6e28c42e5c2bdab73d3553b21a09fa28dabd037.tar.gz mpd-d6e28c42e5c2bdab73d3553b21a09fa28dabd037.tar.xz mpd-d6e28c42e5c2bdab73d3553b21a09fa28dabd037.zip |
ReplayGainInfo: refactor to a class
Diffstat (limited to 'src/decoder/VorbisComments.cxx')
-rw-r--r-- | src/decoder/VorbisComments.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/VorbisComments.cxx b/src/decoder/VorbisComments.cxx index 9830e733e..8fd078ff4 100644 --- a/src/decoder/VorbisComments.cxx +++ b/src/decoder/VorbisComments.cxx @@ -49,11 +49,11 @@ vorbis_comment_value(const char *comment, const char *needle) bool vorbis_comments_to_replay_gain(ReplayGainInfo &rgi, char **comments) { + rgi.Clear(); + const char *temp; bool found = false; - replay_gain_info_init(&rgi); - while (*comments) { if ((temp = vorbis_comment_value(*comments, "replaygain_track_gain"))) { |