Errata
authorNicolas Cornu <nicolas.cornu@ensi-bourges.fr>
Wed, 21 Jul 2010 17:43:46 +0200
changeset 66 cd16ab43a285
parent 65 97763e28c79e
child 67 c12618793df0
Errata
jingle/register.c
--- a/jingle/register.c	Wed Jul 21 17:19:28 2010 +0200
+++ b/jingle/register.c	Wed Jul 21 17:43:46 2010 +0200
@@ -108,7 +108,7 @@
 /**
  * Determine which transport is better suited for a given app.
  */
-JingleTransportFuncs *jingle_transport_for_app(const gchar *appxmlns, GSList *forbid)
+JingleTransportFuncs *jingle_transport_for_app(const gchar *appxmlns, GSList **forbid)
 {
   AppHandlerEntry *app = jingle_find_app(appxmlns);
   GSList *entry;
@@ -124,7 +124,7 @@
     thistransport = (TransportHandlerEntry *) entry->data;
     
     // Look if it's forbidden
-    if (g_slist_find_custom(forbid, thistransport->xmlns, cmp_forbid))
+    if (g_slist_find_custom(*forbid, thistransport->xmlns, cmp_forbid))
       continue;
     
     if (thistransport->priority > bestprio) {
@@ -132,7 +132,7 @@
       besttransport = thistransport;
     }
   }
-
+  *forbid = g_slist_append(*forbid, besttransport->xmlns);
   return besttransport->funcs;
 }