diff options
author | Max Kellermann <max@duempel.org> | 2008-08-26 08:27:05 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-08-26 08:27:05 +0200 |
commit | 0d8b551c5a3aeadfd6901469946078d5a95ecb42 (patch) | |
tree | 3fd36e06ef46dfcfc7f9e426b42668318aec8d59 /src/inputPlugins/wavpack_plugin.c | |
parent | 4590a98f0eb9484e185e7e0c25a3373c8e9076ea (diff) | |
download | mpd-0d8b551c5a3aeadfd6901469946078d5a95ecb42.tar.gz mpd-0d8b551c5a3aeadfd6901469946078d5a95ecb42.tar.xz mpd-0d8b551c5a3aeadfd6901469946078d5a95ecb42.zip |
added parameter total_time to decoder_initialized()
Similar to the previous patch: pass total_time instead of manipulating
dc->totalTime directly.
Diffstat (limited to 'src/inputPlugins/wavpack_plugin.c')
-rw-r--r-- | src/inputPlugins/wavpack_plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inputPlugins/wavpack_plugin.c b/src/inputPlugins/wavpack_plugin.c index 167278f01..a74da7e30 100644 --- a/src/inputPlugins/wavpack_plugin.c +++ b/src/inputPlugins/wavpack_plugin.c @@ -164,10 +164,10 @@ static void wavpack_decode(struct decoder * decoder, samplesreq = sizeof(chunk) / (4 * audio_format.channels); - dc.totalTime = (float)allsamples / audio_format.sampleRate; dc.seekable = canseek; - decoder_initialized(decoder, &audio_format); + decoder_initialized(decoder, &audio_format, + (float)allsamples / audio_format.sampleRate); position = 0; |