Fixed dropping overflow data in the FLAC player
authorSam Lantinga <slouken@libsdl.org>
Sat, 31 Dec 2011 19:11:52 -0500
changeset 522a70c0ee38c9f
parent 521 565549e046b0
child 523 3214c1b0f0f4
Fixed dropping overflow data in the FLAC player
music_flac.c
     1.1 --- a/music_flac.c	Sat Dec 31 18:32:49 2011 -0500
     1.2 +++ b/music_flac.c	Sat Dec 31 19:11:52 2011 -0500
     1.3 @@ -411,7 +411,7 @@
     1.4  {
     1.5  	SDL_AudioCVT *cvt;
     1.6  
     1.7 -	/* GET AUDIO wAVE DATA */
     1.8 +	/* GET AUDIO WAVE DATA */
     1.9  	// set the max number of characters to read
    1.10  	music->flac_data.max_to_read = 8192;
    1.11  
    1.12 @@ -444,7 +444,7 @@
    1.13  				free (music->flac_data.overflow);
    1.14  				music->flac_data.overflow = new_overflow;
    1.15  				music->flac_data.overflow_len = overflow_extra_len;
    1.16 -				music->flac_data.overflow_read = 0;
    1.17 +				music->flac_data.overflow_read = overflow_extra_len;
    1.18  				music->flac_data.max_to_read = 0;
    1.19  			}
    1.20  			else {