[pulseaudio-discuss] userdata not being relayed in callback method

Colin Guthrie gmane at colin.guthr.ie
Wed Oct 14 04:46:25 PDT 2009

'Twas brillig, and Forwind info at 14/10/09 11:49 did gyre and gimble:
> Okay scratch all of the above. Found the issue - no bug - its me of course!
> It seemed a little too fundamental to be a bug and not raise obvious 
> google hits/IRC alarm bells.
> I was not strictly adhering to the callback prototype parameter lists.
> My callback's signature was
> (pa_context *c, const pa_sink_input_info *info, void *userdata)
> The prototype in the APi is
> (pa_context *c, const pa_sink_input_info *info, int eol, void *userdata
> I missed out on the eol ...

I was just coming back to this thread to see if the userdata was null 
when eol < 0 (which may have been by design but I doubt it), but then 
spotted that there was no eol! But you beat me to the actual solution :)

FWIW I believe the next Ubuntu will be shipping 0.9.19, but I'm not an 
Ubuntu guy so take this as a vague "maybe"... :p



Colin Guthrie

Day Job:
   Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
   Mandriva Linux Contributor [http://www.mandriva.com/]
   PulseAudio Hacker [http://www.pulseaudio.org/]
   Trac Hacker [http://trac.edgewall.org/]

More information about the pulseaudio-discuss mailing list