mirror of https://github.com/encounter/SDL.git
Patched to compile on C89 compilers.
This commit is contained in:
parent
9a83151e9c
commit
43674503e1
|
@ -546,9 +546,7 @@ PULSEAUDIO_DetectDevices(int iscapture, SDL_AddAudioDevice addfn)
|
|||
}
|
||||
|
||||
if (!iscapture) {
|
||||
sink_struct a;
|
||||
a.last = 0;
|
||||
a.addfn = addfn;
|
||||
sink_struct a = { 0, addfn };
|
||||
pa_operation *o = PULSEAUDIO_pa_context_get_sink_info_list(context,
|
||||
get_sink_info_callback, &a);
|
||||
while (!a.last) {
|
||||
|
|
Loading…
Reference in New Issue