[farsight2/master] Don't print NULL candidate

Olivier Crête olivier.crete at collabora.co.uk
Fri Apr 10 11:56:48 PDT 2009


---
 transmitters/rawudp/fs-rawudp-component.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/transmitters/rawudp/fs-rawudp-component.c b/transmitters/rawudp/fs-rawudp-component.c
index 57c92fe..d7f09f5 100644
--- a/transmitters/rawudp/fs-rawudp-component.c
+++ b/transmitters/rawudp/fs-rawudp-component.c
@@ -1043,11 +1043,11 @@ fs_rawudp_component_maybe_emit_local_candidates (FsRawUdpComponent *self)
   {
     self->priv->local_active_candidate = self->priv->local_upnp_candidate;
     self->priv->local_upnp_candidate = NULL;
-    FS_RAWUDP_COMPONENT_UNLOCK (self);
     GST_DEBUG ("C:%d Emitting UPnP discovered candidate: %s:%u",
         self->priv->component,
-        self->priv->local_upnp_candidate->ip,
-        self->priv->local_upnp_candidate->port);
+        self->priv->local_active_candidate->ip,
+        self->priv->local_active_candidate->port);
+    FS_RAWUDP_COMPONENT_UNLOCK (self);
     fs_rawudp_component_emit_candidate (self,
         self->priv->local_active_candidate);
     return;
-- 
1.5.6.5



More information about the farsight-commits mailing list