decoder: PCM decoder: Inherit seekable from the input stream

E.g., spotify isn't seekable.
This commit is contained in:
Simon Kagstrom 2011-03-20 17:27:01 +01:00 committed by Max Kellermann
parent 0b12fae84d
commit 640bac1aa4

View File

@ -44,7 +44,7 @@ pcm_stream_decode(struct decoder *decoder, struct input_stream *is)
if (is->size >= 0)
total_time = is->size / time_to_size;
decoder_initialized(decoder, &audio_format, true, total_time);
decoder_initialized(decoder, &audio_format, is->seekable, total_time);
do {
char buffer[4096];