Patched to compile on C89 compilers.

This commit is contained in:
Ryan C. Gordon 2015-03-18 10:05:36 -04:00
parent 9a83151e9c
commit 43674503e1
1 changed files with 2 additions and 4 deletions

View File

@ -546,9 +546,7 @@ PULSEAUDIO_DetectDevices(int iscapture, SDL_AddAudioDevice addfn)
} }
if (!iscapture) { if (!iscapture) {
sink_struct a; sink_struct a = { 0, addfn };
a.last = 0;
a.addfn = addfn;
pa_operation *o = PULSEAUDIO_pa_context_get_sink_info_list(context, pa_operation *o = PULSEAUDIO_pa_context_get_sink_info_list(context,
get_sink_info_callback, &a); get_sink_info_callback, &a);
while (!a.last) { while (!a.last) {