<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Perfect! Sorry for my misinterpretation, I did not use glib
before... <br>
<br>
Thank you a lot!<br>
Niko<br>
<br>
<br>
<div class="moz-cite-prefix">Am 30.10.2014 18:27, schrieb Philip
Withnall:<br>
</div>
<blockquote
cite="mid:1414690073.7034.19.camel@philip-work-laptop.cbg.collabora.co.uk"
type="cite">
<pre wrap="">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?
<a class="moz-txt-link-freetext" href="http://cgit.freedesktop.org/libnice/libnice/commit/?id=3528654e7d2082d5bdda1e6f47357105f91af68c">http://cgit.freedesktop.org/libnice/libnice/commit/?id=3528654e7d2082d5bdda1e6f47357105f91af68c</a>
Philip
On Thu, 2014-10-30 at 17:13 +0100, ND wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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:
</pre>
<blockquote type="cite">
<pre wrap="">On Wed, 2014-10-29 at 15:15 +0100, ND wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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:
</pre>
</blockquote>
<pre wrap="">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
</pre>
</blockquote>
<pre wrap="">
______________________________________________________________________
Diese E-Mail ist frei von Viren und
Malware, denn der avast! Antivirus
Schutz ist aktiv.
</pre>
</blockquote>
<pre wrap="">
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
nice mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nice@lists.freedesktop.org">nice@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/nice">http://lists.freedesktop.org/mailman/listinfo/nice</a>
</pre>
</blockquote>
<br>
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
<tr>
<td style='border:none;padding:0px 15px 0px 8px'>
<a href="http://www.avast.com/">
<img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" />
</a>
</td>
<td>
<p style='color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
Diese E-Mail ist frei von Viren und Malware, denn der <a href="http://www.avast.com/">avast! Antivirus</a> Schutz ist aktiv.
</p>
</td>
</tr>
</table>
<br />
</body>
</html>