PulseAudio: Fixed infinite loop, due to iteration variable not incrementing.

Fixes Bugzilla #1283.

--HG--
branch : SDL-1.2
This commit is contained in:
Ryan C. Gordon
2012-01-02 18:15:07 -08:00
parent 7be0c61da5
commit fe0be1b41b

View File

@@ -446,6 +446,7 @@ static int PULSE_OpenAudio(_THIS, SDL_AudioSpec *spec)
}
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");