[libnice] "candidate-gathering-done" is never fired with STUN
Philip Withnall
philip at tecnocode.co.uk
Thu Oct 30 10:27:53 PDT 2014
Aha! For GMainContexts, by convention, NULL means the global default
GMainContext — the same one as returned by g_main_context_default().
I’ve expanded the documentation a little to make this more obvious. Do
you think it’s more helpful now?
http://cgit.freedesktop.org/libnice/libnice/commit/?id=3528654e7d2082d5bdda1e6f47357105f91af68c
Philip
On Thu, 2014-10-30 at 17:13 +0100, ND wrote:
> Ah, I see. I was using the online basic usage example of NiceAgent
> (link) as a reference. Maybe it should be updated to show that a main
> loop IS required? I assumed it was optional because there NULL is
> passed in.
>
> Regards
> ~
>
>
> Am 30.10.2014 09:48, schrieb Philip Withnall:
>
> > On Wed, 2014-10-29 at 15:15 +0100, ND wrote:
> > > I try to use libnice as a callable object, so my agent has no GMainLoop
> > > and uses a mutex to wait for the candidate-gathering-done signal. As it
> > > never comes my application is stuck :/ See the relevant code below:
> > That’s your problem. libnice *requires* a GMainLoop to run, otherwise
> > none of its timers will fire, which are a core part of the ICE process.
> >
> > Philip
>
>
>
>
> ______________________________________________________________________
>
> Diese E-Mail ist frei von Viren und
> Malware, denn der avast! Antivirus
> Schutz ist aktiv.
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/nice/attachments/20141030/aa4ec945/attachment.sig>
More information about the nice
mailing list