Skip to content
Permalink
Browse files

PulseAudio: Fixed infinite loop, due to iteration variable not increm…

…enting.

Fixes Bugzilla #1283.
  • Loading branch information
icculus committed Jan 3, 2012
1 parent 6ac9979 commit 4e4bfd4c57ce114ded44340d28a418b4480adf91
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/audio/pulse/SDL_pulseaudio.c
@@ -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");

0 comments on commit 4e4bfd4

Please sign in to comment.