diff options
Diffstat (limited to '')
-rw-r--r-- | src/inputPlugins/mpc_plugin.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/inputPlugins/mpc_plugin.c b/src/inputPlugins/mpc_plugin.c index 5a57ea4c8..399adf972 100644 --- a/src/inputPlugins/mpc_plugin.c +++ b/src/inputPlugins/mpc_plugin.c @@ -160,8 +160,6 @@ static int mpc_decode(struct decoder * mpd_decoder, InputStream * inStream) return 0; } - dc.totalTime = mpc_streaminfo_get_length(&info); - audio_format.bits = 16; audio_format.channels = info.channels; audio_format.sampleRate = info.sample_freq; @@ -172,7 +170,8 @@ static int mpc_decode(struct decoder * mpd_decoder, InputStream * inStream) replayGainInfo->trackGain = info.gain_title * 0.01; replayGainInfo->trackPeak = info.peak_title / 32767.0; - decoder_initialized(mpd_decoder, &audio_format); + decoder_initialized(mpd_decoder, &audio_format, + mpc_streaminfo_get_length(&info)); while (!eof) { if (dc.command == DECODE_COMMAND_SEEK) { |