diff options
author | Max Kellermann <max@duempel.org> | 2013-10-25 19:09:22 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-25 19:12:38 +0200 |
commit | 6d475c40de567d778fa6f96c379687a8bf83f82b (patch) | |
tree | 6302688c49ab48a514b593812688610ca9da2b75 /src/decoder/VorbisComments.cxx | |
parent | ed7891bf014c5085240361d605a0eaf24f74e7df (diff) | |
download | mpd-6d475c40de567d778fa6f96c379687a8bf83f82b.tar.gz mpd-6d475c40de567d778fa6f96c379687a8bf83f82b.tar.xz mpd-6d475c40de567d778fa6f96c379687a8bf83f82b.zip |
ReplayGainInfo: use CamelCase for struct name
Diffstat (limited to 'src/decoder/VorbisComments.cxx')
-rw-r--r-- | src/decoder/VorbisComments.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/decoder/VorbisComments.cxx b/src/decoder/VorbisComments.cxx index 44648884a..9830e733e 100644 --- a/src/decoder/VorbisComments.cxx +++ b/src/decoder/VorbisComments.cxx @@ -47,29 +47,29 @@ vorbis_comment_value(const char *comment, const char *needle) } bool -vorbis_comments_to_replay_gain(struct replay_gain_info *rgi, char **comments) +vorbis_comments_to_replay_gain(ReplayGainInfo &rgi, char **comments) { const char *temp; bool found = false; - replay_gain_info_init(rgi); + replay_gain_info_init(&rgi); while (*comments) { if ((temp = vorbis_comment_value(*comments, "replaygain_track_gain"))) { - rgi->tuples[REPLAY_GAIN_TRACK].gain = atof(temp); + rgi.tuples[REPLAY_GAIN_TRACK].gain = atof(temp); found = true; } else if ((temp = vorbis_comment_value(*comments, "replaygain_album_gain"))) { - rgi->tuples[REPLAY_GAIN_ALBUM].gain = atof(temp); + rgi.tuples[REPLAY_GAIN_ALBUM].gain = atof(temp); found = true; } else if ((temp = vorbis_comment_value(*comments, "replaygain_track_peak"))) { - rgi->tuples[REPLAY_GAIN_TRACK].peak = atof(temp); + rgi.tuples[REPLAY_GAIN_TRACK].peak = atof(temp); found = true; } else if ((temp = vorbis_comment_value(*comments, "replaygain_album_peak"))) { - rgi->tuples[REPLAY_GAIN_ALBUM].peak = atof(temp); + rgi.tuples[REPLAY_GAIN_ALBUM].peak = atof(temp); found = true; } |