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_plugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/decoder/flac_plugin.c') diff --git a/src/decoder/flac_plugin.c b/src/decoder/flac_plugin.c index 05517db27..f3aaf42c6 100644 --- a/src/decoder/flac_plugin.c +++ b/src/decoder/flac_plugin.c @@ -341,7 +341,8 @@ flac_decode_internal(struct decoder * decoder, struct input_stream *inStream, } } - decoder_initialized(decoder, &data.audio_format, data.total_time); + decoder_initialized(decoder, &data.audio_format, + inStream->seekable, data.total_time); while (true) { if (!flac_process_single(flacDec)) -- cgit v1.2.3