From d6e28c42e5c2bdab73d3553b21a09fa28dabd037 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 25 Oct 2013 19:05:49 +0200 Subject: ReplayGainInfo: refactor to a class --- src/decoder/MpcdecDecoderPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/decoder/MpcdecDecoderPlugin.cxx') diff --git a/src/decoder/MpcdecDecoderPlugin.cxx b/src/decoder/MpcdecDecoderPlugin.cxx index 654feaaf1..dc258623c 100644 --- a/src/decoder/MpcdecDecoderPlugin.cxx +++ b/src/decoder/MpcdecDecoderPlugin.cxx @@ -169,7 +169,7 @@ mpcdec_decode(Decoder &mpd_decoder, InputStream &is) } ReplayGainInfo rgi; - replay_gain_info_init(&rgi); + rgi.Clear(); rgi.tuples[REPLAY_GAIN_ALBUM].gain = MPC_OLD_GAIN_REF - (info.gain_album / 256.); rgi.tuples[REPLAY_GAIN_ALBUM].peak = pow(10, info.peak_album / 256. / 20) / 32767; rgi.tuples[REPLAY_GAIN_TRACK].gain = MPC_OLD_GAIN_REF - (info.gain_title / 256.); -- cgit v1.2.3