Patched to compile on C89 compilers.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 18 Mar 2015 10:05:36 -0400
changeset 93892c4fa44a32a7
parent 9388 8d26d736af94
child 9390 afd88e715bd7
Patched to compile on C89 compilers.
src/audio/pulseaudio/SDL_pulseaudio.c
     1.1 --- a/src/audio/pulseaudio/SDL_pulseaudio.c	Wed Mar 18 09:59:22 2015 -0400
     1.2 +++ b/src/audio/pulseaudio/SDL_pulseaudio.c	Wed Mar 18 10:05:36 2015 -0400
     1.3 @@ -546,10 +546,8 @@
     1.4      }
     1.5  
     1.6      if (!iscapture) {
     1.7 -        sink_struct a;
     1.8 -        a.last = 0;
     1.9 -        a.addfn = addfn;
    1.10 -        pa_operation* o = PULSEAUDIO_pa_context_get_sink_info_list(context,
    1.11 +        sink_struct a = { 0, addfn };
    1.12 +        pa_operation *o = PULSEAUDIO_pa_context_get_sink_info_list(context,
    1.13                  get_sink_info_callback, &a);
    1.14          while (!a.last) {
    1.15              if (PULSEAUDIO_pa_operation_get_state(o) == PA_OPERATION_CANCELLED) {