rtpbin seems to leak data when setting destinations, the following
patch seems to solve the problem (g_strfreev() was after a break ) :

--- gstrtpbin.c.01062007        2007-05-09 10:05:09.000000000 +0200
+++ gstrtpbin.c 2007-06-01 16:11:08.041185166 +0200
@@ -952,20 +952,23 @@ gst_rtp_bin_set_destinations (GstRTPBin
         if (g_strv_length (split_ip) != 2)
         {
             GST_DEBUG("Badly formated address %s, use ip:port format",
ips[i]);
+           g_strfreev (split_ip);
             continue;
         }

 #ifdef HAVE_JRTP
         jrtpsession_setdestinationaddrs (rtp_bin->sess, split_ip[0],
                 atoi(split_ip[1]));
+       g_strfreev (split_ip);
 #else
         GST_DEBUG("Jrtplib not enabled, taking first destination only
%s",
                 ips[i]);
         rtp_bin->dest_ip = inet_addr(split_ip[0]);
         rtp_bin->dest_port = htons(atoi(split_ip[1]));
+       g_strfreev (split_ip);
         break;
 #endif
-        g_strfreev (split_ip);
+
     }
     g_strfreev (ips);
 }



      
_____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

-------------------------------------------------------------------------
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