From: <ms...@fr...> - 2005-11-14 18:48:12
|
CVS Root: /cvs/gstreamer Module: gst-plugins-base Changes by: msmith Date: Mon Nov 14 2005 10:48:06 PST Log message: * gst/tcp/gstmultifdsink.c: (gst_multifdsink_client_queue_data), (gst_multifdsink_render): Don't leak GDP headers when using GDP mode (i.e. tcpserversink). Modified files: . : ChangeLog gst/tcp : gstmultifdsink.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/ChangeLog.diff?r1=1.2074&r2=1.2075 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/tcp/gstmultifdsink.c.diff?r1=1.46&r2=1.47 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-plugins-base/ChangeLog,v retrieving revision 1.2074 retrieving revision 1.2075 diff -u -d -r1.2074 -r1.2075 --- ChangeLog 14 Nov 2005 18:26:21 -0000 1.2074 +++ ChangeLog 14 Nov 2005 18:47:54 -0000 1.2075 @@ -1,3 +1,9 @@ +2005-11-14 Michael Smith <ms...@fl...> + + * gst/tcp/gstmultifdsink.c: (gst_multifdsink_client_queue_data), + (gst_multifdsink_render): + Don't leak GDP headers when using GDP mode (i.e. tcpserversink). 2005-11-14 Tim-Philipp Müller <tim at centricular dot net> * gst/playback/gstplaybin.c: (gen_audio_element): Index: gstmultifdsink.c RCS file: /cvs/gstreamer/gst-plugins-base/gst/tcp/gstmultifdsink.c,v retrieving revision 1.46 retrieving revision 1.47 diff -u -d -r1.46 -r1.47 --- gstmultifdsink.c 17 Oct 2005 13:46:22 -0000 1.46 +++ gstmultifdsink.c 14 Nov 2005 18:47:54 -0000 1.47 @@ -770,6 +770,9 @@ return ret; } +/* Queue raw data, creating a new buffer. This takes ownership of the data by + * setting it as GST_BUFFER_MALLOCDATA() on the created buffer + */ static gboolean gst_multifdsink_client_queue_data (GstMultiFdSink * sink, GstTCPClient * client, gchar * data, gint len) @@ -778,6 +781,7 @@ buf = gst_buffer_new (); GST_BUFFER_DATA (buf) = (guint8 *) data; + GST_BUFFER_MALLOCDATA (buf) = (guint8 *) data; GST_BUFFER_SIZE (buf) = len; GST_LOG_OBJECT (sink, "[fd %5d] queueing data of length %d", @@ -1509,6 +1513,7 @@ g_slist_free (sink->streamheader); sink->streamheader = NULL; } /* if the incoming buffer is marked as IN CAPS, then we assume for now * it's a streamheader that needs to be sent to each new client, so we * put it on our internal list of streamheader buffers. |