2007-11-05  Yavor Doganov  <yavor@gnu.org>

	* Bundles/FLAC/FLAC.m 
	([FLAC -readNextChunk:bufferwithSize:bufferSize]): Check for
	FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC, which seems to be
	the proper expected state.

--- Bundles/FLAC/FLAC.m	2007-11-05 22:19:36.000000000 +0200
+++ /home/yavor/src/cynthiune.app-0.9.5/Bundles/FLAC/FLAC.m	2007-11-05 22:06:29.000000000 +0200
@@ -250,11 +250,11 @@ errorCallback (const FLAC__StreamDecoder
              withSize: (unsigned int) bufferSize
 {
   int readBytes;
-  FLAC__StreamDecoderInitStatus state;
+  FLAC__StreamDecoderState state;
 
   state = FLAC__stream_decoder_get_state (fileDecoder);
 
-  if (state == FLAC__STREAM_DECODER_INIT_STATUS_OK)
+  if (state == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC)
     readBytes = [self _processNextChunk: buffer withSize: bufferSize];
   else if (state == FLAC__STREAM_DECODER_END_OF_STREAM)
     readBytes = 0;
