aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-07-20 22:32:55 +0200
committerMax Kellermann <max@duempel.org>2010-07-20 22:32:55 +0200
commit8b055c3127fb65aaeceb571b7db264c066b9cc3f (patch)
treec89db9cf0bd6615295d74c970703cb94dd3a5a9f
parent172182b18f00e062a4eae22dd4d0032750f37367 (diff)
downloadmpd-8b055c3127fb65aaeceb571b7db264c066b9cc3f.tar.gz
mpd-8b055c3127fb65aaeceb571b7db264c066b9cc3f.tar.xz
mpd-8b055c3127fb65aaeceb571b7db264c066b9cc3f.zip
tag_rva2: set "gain", not "peak"
RVA2 tags only store the "gain" value, there is no "peak" attribute.
Diffstat (limited to '')
-rw-r--r--NEWS2
-rw-r--r--src/decoder/mad_plugin.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 1dd15e4b3..a43fa5d7c 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,6 @@
ver 0.15.12 (2010/??/??)
+* tags:
+ - rva2: set "gain", not "peak"
* decoders:
- wildmidi: support version 0.2.3
diff --git a/src/decoder/mad_plugin.c b/src/decoder/mad_plugin.c
index 88bc4c214..9b3259485 100644
--- a/src/decoder/mad_plugin.c
+++ b/src/decoder/mad_plugin.c
@@ -277,8 +277,8 @@ parse_rva2(struct id3_tag *tag, struct replay_gain_info *replay_gain_info)
voladj_float = (double) voladj_fixed / 512;
- replay_gain_info->tuples[REPLAY_GAIN_TRACK].peak = voladj_float;
- replay_gain_info->tuples[REPLAY_GAIN_ALBUM].peak = voladj_float;
+ replay_gain_info->tuples[REPLAY_GAIN_TRACK].gain = voladj_float;
+ replay_gain_info->tuples[REPLAY_GAIN_ALBUM].gain = voladj_float;
g_debug("parseRVA2: Relative Volume "
"%+.1f dB adjustment (%s)\n",