diff options
author | Max Kellermann <max@duempel.org> | 2008-11-02 17:01:51 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-02 17:01:51 +0100 |
commit | c9e15bc418d4a27305b39ccc63e631ac5e329c8b (patch) | |
tree | 0e97c8b6c829f464374d3b2cbcbc3fb01e4bebe4 /src/decoder/wavpack_plugin.c | |
parent | c7a374bdcbe85a794b047c638e57b9358d2d095b (diff) | |
download | mpd-c9e15bc418d4a27305b39ccc63e631ac5e329c8b.tar.gz mpd-c9e15bc418d4a27305b39ccc63e631ac5e329c8b.tar.xz mpd-c9e15bc418d4a27305b39ccc63e631ac5e329c8b.zip |
decoder_api: pass "seekable" flag to decoder_initialized()
Don't pass the "seekable" flag with every decoder_data() invocation.
Since that flag won't change within the file, it is enough to pass it
to decoder_initialized() once per file.
Diffstat (limited to 'src/decoder/wavpack_plugin.c')
-rw-r--r-- | src/decoder/wavpack_plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/wavpack_plugin.c b/src/decoder/wavpack_plugin.c index ef2ea6a99..663bc1f2b 100644 --- a/src/decoder/wavpack_plugin.c +++ b/src/decoder/wavpack_plugin.c @@ -164,7 +164,7 @@ static void wavpack_decode(struct decoder * decoder, samplesreq = sizeof(chunk) / (4 * audio_format.channels); - decoder_initialized(decoder, &audio_format, + decoder_initialized(decoder, &audio_format, false, (float)allsamples / audio_format.sample_rate); position = 0; @@ -200,7 +200,7 @@ static void wavpack_decode(struct decoder * decoder, format_samples(Bps, chunk, samplesgot * audio_format.channels); - decoder_data(decoder, NULL, 0, chunk, + decoder_data(decoder, NULL, chunk, samplesgot * outsamplesize, file_time, bitrate, replayGainInfo); |