[farsight2/master] Port rawudp test to new api

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:23:37 PST 2008


---
 tests/check/transmitter/rawudp.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/tests/check/transmitter/rawudp.c b/tests/check/transmitter/rawudp.c
index 9988f72..03c39ea 100644
--- a/tests/check/transmitter/rawudp.c
+++ b/tests/check/transmitter/rawudp.c
@@ -85,6 +85,7 @@ _new_local_candidate (FsStreamTransmitter *st, FsCandidate *candidate,
   gboolean has_stun = GPOINTER_TO_INT (user_data) & FLAG_HAS_STUN;
   gboolean is_local = GPOINTER_TO_INT (user_data) & FLAG_IS_LOCAL;
   GError *error = NULL;
+  GList *item = NULL;
   gboolean ret;
 
   g_debug ("Has local candidate %s:%u of type %d",
@@ -130,7 +131,11 @@ _new_local_candidate (FsStreamTransmitter *st, FsCandidate *candidate,
   g_debug ("New local candidate %s:%d of type %d for component %d",
     candidate->ip, candidate->port, candidate->type, candidate->component_id);
 
-  ret = fs_stream_transmitter_add_remote_candidate (st, candidate, &error);
+  item = g_list_prepend (NULL, candidate);
+
+  ret = fs_stream_transmitter_set_remote_candidates (st, item, &error);
+
+  g_list_free (item);
 
   if (error)
     ts_fail ("Error while adding candidate: (%s:%d) %s",
-- 
1.5.6.5




More information about the farsight-commits mailing list