[vlc-devel] Flamebait: PulseAudio removal

Colin Guthrie gmane at colin.guthr.ie
Sun Dec 5 18:21:28 CET 2010

'Twas brillig, and salsaman at 05/12/10 00:51 did gyre and gimble:
> http://lives.sourceforge.net
> https://www.ohloh.net/accounts/salsaman
> On Sat, Dec 4, 2010 at 9:44 PM, salsaman <salsaman at gmail.com> wrote:
>> A runtime check can be done by forking and calling pa_context_get_server_info().
> Sorry, I meant pa_context_connect().
>   pa_threaded_mainloop *pa_mloop=pa_threaded_mainloop_new();
>     pa_context *pcon=pa_context_new(pa_threaded_mainloop_get_api(pa_mloop),"VLC");
>   pa_context_connect(pcon,NULL,0,NULL);
>   pa_threaded_mainloop_start(pa_mloop);
>   pa_context_state_t pa_state=pa_context_get_state(pcon);
> Then keep checking pa_state until you get either PA_CONTEXT_READY or
> you time out.

I just meant a runtime check for the version of the library (i.e.
pa_get_library_version()). It's not actually important what version the
server is, so no need to connect to the server first.

But as Rémi pointed out, there is likely not much need to go into this
kind of detailed check and a built time check is probably sufficient.



Colin Guthrie

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mageia Contributor [http://www.mageia.org/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]

More information about the vlc-devel mailing list