Skip to content

Commit

Permalink
Patched to compile on C89 compilers.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 18, 2015
1 parent 9a83151 commit 4367450
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/audio/pulseaudio/SDL_pulseaudio.c
Expand Up @@ -546,10 +546,8 @@ PULSEAUDIO_DetectDevices(int iscapture, SDL_AddAudioDevice addfn)
}

if (!iscapture) {
sink_struct a;
a.last = 0;
a.addfn = addfn;
pa_operation* o = PULSEAUDIO_pa_context_get_sink_info_list(context,
sink_struct a = { 0, addfn };
pa_operation *o = PULSEAUDIO_pa_context_get_sink_info_list(context,
get_sink_info_callback, &a);
while (!a.last) {
if (PULSEAUDIO_pa_operation_get_state(o) == PA_OPERATION_CANCELLED) {
Expand Down

0 comments on commit 4367450

Please sign in to comment.