[farsight2/master] rawudp: Add some UPnP debug messages

Olivier Crête olivier.crete at collabora.co.uk
Thu Aug 20 07:19:13 PDT 2009


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

diff --git a/transmitters/rawudp/fs-rawudp-component.c b/transmitters/rawudp/fs-rawudp-component.c
index a698e76..a4ba31f 100644
--- a/transmitters/rawudp/fs-rawudp-component.c
+++ b/transmitters/rawudp/fs-rawudp-component.c
@@ -1111,6 +1111,10 @@ _upnp_mapped_external_port (GUPnPSimpleIgdThread *igd, gchar *proto,
       external_ip,
       external_port);
 
+  GST_DEBUG ("Got UPnP Candidate c:%d ext-ip:%s ext-port:%u"
+      " int-ip:%s int-port:%u", self->priv->component, external_ip,
+      external_port, local_ip, local_port);
+
   FS_RAWUDP_COMPONENT_UNLOCK (self);
 
   fs_rawudp_component_maybe_emit_local_candidates (self);
@@ -1121,6 +1125,8 @@ _upnp_discovery_timeout (gpointer user_data)
 {
   FsRawUdpComponent *self = user_data;
 
+  GST_DEBUG ("UPnP timed out on component %d", self->priv->component);
+
   FS_RAWUDP_COMPONENT_LOCK (self);
   g_source_unref (self->priv->upnp_discovery_timeout_src);
   self->priv->upnp_discovery_timeout_src = NULL;
@@ -1195,6 +1201,8 @@ fs_rawudp_component_gather_local_candidates (FsRawUdpComponent *self,
         FS_RAWUDP_COMPONENT_UNLOCK (self);
       }
 
+      GST_DEBUG ("Doing UPnP Discovery for local ip:%s port:%s", ip, port);
+
       gupnp_simple_igd_add_port (GUPNP_SIMPLE_IGD (self->priv->upnp_igd),
           "UDP", port, ip, port, self->priv->upnp_mapping_timeout,
           "Farsight Raw UDP transmitter");
-- 
1.5.6.5




More information about the farsight-commits mailing list