PulseAudio: Fixed infinite loop, due to iteration variable not incrementing. SDL-1.2
authorRyan C. Gordon
Mon, 02 Jan 2012 18:15:07 -0800
branchSDL-1.2
changeset 61539722c8d475c0
parent 6151 331f27f01cdb
child 6154 487e4bdef44e
PulseAudio: Fixed infinite loop, due to iteration variable not incrementing.

Fixes Bugzilla #1283.
src/audio/pulse/SDL_pulseaudio.c
     1.1 --- a/src/audio/pulse/SDL_pulseaudio.c	Mon Jan 02 15:07:26 2012 -0500
     1.2 +++ b/src/audio/pulse/SDL_pulseaudio.c	Mon Jan 02 18:15:07 2012 -0800
     1.3 @@ -446,6 +446,7 @@
     1.4  		}
     1.5  		if ( paspec.format != PA_SAMPLE_INVALID )
     1.6  			break;
     1.7 +		test_format = SDL_NextAudioFormat();
     1.8  	}
     1.9  	if (paspec.format == PA_SAMPLE_INVALID ) {
    1.10  		SDL_SetError("Couldn't find any suitable audio formats");