Re: [Flac-dev] FLAC__stream_decoder_process_single and FLAC__STREAM_DECODER_END_OF_STREAM

2007-07-25 Thread Brian Willoughby
I haven't studied this thoroughly, but perhaps the return code is supposed to distinguish bad streams from good streams. Every stream must end eventually, but that does not mean there is an error with the stream. You're wanting a return code that tells you whether to continue processing

[Flac-dev] FLAC__stream_decoder_process_single and FLAC__STREAM_DECODER_END_OF_STREAM

2007-07-14 Thread Erik de Castro Lopo
Hi all, If I have code that does this: while (FLAC__stream_decoder_process_single (decoder)) /* Do something. */ ; I get an infinite loop. Shouldn't FLAC__stream_decoder_process_single return false if it gets to FLAC__STREAM_DECODER_END_OF_STREAM? If so, here's a patch. Cheers,