PulseAudio: Fixed infinite loop, due to iteration variable not incrementing. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Mon, 02 Jan 2012 18:15:07 -0800
branchSDL-1.2
changeset 6153 9722c8d475c0
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
--- a/src/audio/pulse/SDL_pulseaudio.c	Mon Jan 02 15:07:26 2012 -0500
+++ b/src/audio/pulse/SDL_pulseaudio.c	Mon Jan 02 18:15:07 2012 -0800
@@ -446,6 +446,7 @@
 		}
 		if ( paspec.format != PA_SAMPLE_INVALID )
 			break;
+		test_format = SDL_NextAudioFormat();
 	}
 	if (paspec.format == PA_SAMPLE_INVALID ) {
 		SDL_SetError("Couldn't find any suitable audio formats");