mirror of
https://github.com/yawut/SDL.git
synced 2026-10-27 08:59:46 -05:00
PulseAudio: Fixed infinite loop, due to iteration variable not incrementing.
Fixes Bugzilla #1283. --HG-- branch : SDL-1.2
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user