[farsight2/master] Empty candidate list on restart

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


---
 transmitters/nice/fs-nice-stream-transmitter.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/transmitters/nice/fs-nice-stream-transmitter.c b/transmitters/nice/fs-nice-stream-transmitter.c
index d78e857..a67118a 100644
--- a/transmitters/nice/fs-nice-stream-transmitter.c
+++ b/transmitters/nice/fs-nice-stream-transmitter.c
@@ -580,6 +580,11 @@ fs_nice_stream_transmitter_set_remote_candidates (
   if (!candidates)
   {
     GST_DEBUG ("NULL candidates passed, lets do an ICE restart");
+    FS_NICE_STREAM_TRANSMITTER_LOCK (self);
+    if (self->priv->remote_candidates)
+      fs_candidate_list_destroy (self->priv->remote_candidates);
+    self->priv->remote_candidates = NULL;
+    FS_NICE_STREAM_TRANSMITTER_UNLOCK (self);
     nice_agent_restart (self->priv->agent->agent);
     return TRUE;
   }
-- 
1.5.6.5




More information about the farsight-commits mailing list