New patch to rtpbin to add missing unref(), avoiding memleaks.
Regards.

      
_____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 
--- gstrtpbin.c.08062007bis	2007-06-08 10:25:50.000000000 +0200
+++ gstrtpbin.c	2007-06-08 11:38:39.102934179 +0200
@@ -576,7 +576,8 @@ gst_rtp_bin_setup_elements (GstRTPBin * 
             GST_DEBUG ("Running gst_rtp_bin_setup_recv_elements");
             if (!gst_rtp_bin_setup_recv_elements (rtp_bin))
             {
-                return FALSE;
+                if (rtp_src_pad) gst_object_unref(rtp_src_pad);
+	        return FALSE;
             }
         }
     }
@@ -603,7 +604,8 @@ gst_rtp_bin_setup_elements (GstRTPBin * 
             GST_DEBUG ("Running gst_rtp_bin_setup_rtcp_elements");
             if (!gst_rtp_bin_setup_rtcp_elements (rtp_bin))
             {
-                return FALSE;
+               if (rtp_src_pad) gst_object_unref(rtp_src_pad);
+               return FALSE;
             }
             rtcp_src_pad = gst_element_get_pad (rtp_bin->rtpsend, "rtcpsrc");
         }
@@ -639,6 +641,10 @@ gst_rtp_bin_setup_elements (GstRTPBin * 
 
 #ifdef HAVE_JRTP
     jrtpsession_setpads (rtp_bin->sess, rtp_src_pad, rtcp_src_pad);
+#else
+    if (rtp_src_pad) gst_object_unref(rtp_src_pad);
+    if (rtcp_src_pad) gst_object_unref(rtcp_src_pad);
+	    
 #endif
 
     GST_DEBUG("Elements setup properly");
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Farsight-devel mailing list
Farsight-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/farsight-devel

Reply via email to