[farsight2/master] Give login/password on a per-candidate basis

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


---
 transmitters/nice/fs-nice-stream-transmitter.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/transmitters/nice/fs-nice-stream-transmitter.c b/transmitters/nice/fs-nice-stream-transmitter.c
index 714e3b0..14c849f 100644
--- a/transmitters/nice/fs-nice-stream-transmitter.c
+++ b/transmitters/nice/fs-nice-stream-transmitter.c
@@ -544,11 +544,12 @@ fs_candidate_to_nice_candidate (FsNiceStreamTransmitter *self,
   nc->component_id = candidate->component_id;
   strncpy (nc->foundation, candidate->foundation,
       NICE_CANDIDATE_MAX_FOUNDATION);
-  /*
-   * ICE-6 per-candidate style passwords are broken in libnice
+
   nc->username = g_strdup(candidate->username);
   nc->password = g_strdup(candidate->password);
-  */
+
+
+  g_warning ("%s %s", nc->username, nc->password);
 
   if (candidate->ip == NULL || candidate->port == 0)
     goto error;
@@ -652,7 +653,7 @@ fs_nice_stream_transmitter_remote_candidates_added (
   self->priv->candidates_to_set = NULL;
   FS_NICE_STREAM_TRANSMITTER_UNLOCK (self);
 
-
+  /*
   if (candidates)
   {
     FsCandidate *cand = candidates->data;
@@ -665,6 +666,7 @@ fs_nice_stream_transmitter_remote_candidates_added (
         " assuming we're in ice-6 with dribble, so every candidate has"
         " its own password");
   }
+  */
 
   for (c = 1; c <= self->priv->transmitter->components; c++)
   {
-- 
1.5.6.5




More information about the farsight-commits mailing list