From c9e15bc418d4a27305b39ccc63e631ac5e329c8b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 2 Nov 2008 17:01:51 +0100 Subject: 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. --- src/decoder/_flac_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/decoder/_flac_common.c') diff --git a/src/decoder/_flac_common.c b/src/decoder/_flac_common.c index 5c160c103..a8a856755 100644 --- a/src/decoder/_flac_common.c +++ b/src/decoder/_flac_common.c @@ -300,7 +300,7 @@ flac_common_write(FlacData *data, const FLAC__Frame * frame, c_samp, c_samp + num_samples); cmd = decoder_data(data->decoder, data->inStream, - 1, data->chunk, + data->chunk, num_samples * bytes_per_channel, data->time, data->bitRate, data->replayGainInfo); -- cgit v1.2.3