From 43674503e1fb42383ab14aa132dd6c3edf436ab3 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 18 Mar 2015 10:05:36 -0400 Subject: [PATCH] Patched to compile on C89 compilers. --- src/audio/pulseaudio/SDL_pulseaudio.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/audio/pulseaudio/SDL_pulseaudio.c b/src/audio/pulseaudio/SDL_pulseaudio.c index 30bc228bc..915d5d6db 100644 --- a/src/audio/pulseaudio/SDL_pulseaudio.c +++ b/src/audio/pulseaudio/SDL_pulseaudio.c @@ -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) {