[farsight2/master] Remove useless check, fix comment

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


---
 transmitters/rawudp/fs-rawudp-transmitter.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/transmitters/rawudp/fs-rawudp-transmitter.c b/transmitters/rawudp/fs-rawudp-transmitter.c
index 08fbb0a..6fab9bc 100644
--- a/transmitters/rawudp/fs-rawudp-transmitter.c
+++ b/transmitters/rawudp/fs-rawudp-transmitter.c
@@ -264,7 +264,7 @@ fs_rawudp_transmitter_constructed (GObject *object)
     gst_element_add_pad (self->priv->gst_src, ghostpad);
 
 
-    /* Lets create the RTP source tee */
+    /* Lets create the RTP sink tee */
 
     self->priv->udpsink_tees[c] = gst_element_factory_make ("tee", NULL);
 
@@ -780,8 +780,7 @@ fs_rawudp_transmitter_udpport_is_pad (UdpPort *udpport, GstPad *pad)
 
   res = (mypad == pad);
 
-  if (mypad)
-    gst_object_unref (mypad);
+  gst_object_unref (mypad);
 
   return res;
 }
-- 
1.5.6.5




More information about the farsight-commits mailing list