Skip to content

Commit

Permalink
PulseAudio: Fixed infinite loop, due to iteration variable not increm…
Browse files Browse the repository at this point in the history
…enting.

Fixes Bugzilla #1283.
  • Loading branch information
icculus committed Jan 3, 2012
1 parent 6ac9979 commit 4e4bfd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/audio/pulse/SDL_pulseaudio.c
Expand Up @@ -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");
Expand Down

0 comments on commit 4e4bfd4

Please sign in to comment.