load_flac.c
changeset 613 6fa075aa693e
parent 601 05123263dab3
child 617 87116a42526e
     1.1 --- a/load_flac.c	Tue Apr 16 19:38:03 2013 +0300
     1.2 +++ b/load_flac.c	Sat May 04 02:56:20 2013 -0700
     1.3 @@ -61,10 +61,7 @@
     1.4  		*bytes = SDL_RWread (data->sdl_src, buffer, sizeof (FLAC__byte),
     1.5  								*bytes);
     1.6  
     1.7 -		if(*bytes < 0) { // error in read
     1.8 -			return FLAC__STREAM_DECODER_READ_STATUS_ABORT;
     1.9 -		}
    1.10 -		else if(*bytes == 0) { // no data was read (EOF)
    1.11 +		if (*bytes == 0) { // error or no data was read (EOF)
    1.12  			return FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM;
    1.13  		}
    1.14  		else { // data was read, continue