+2005-11-14 Michael Smith <msmith@fluendo.com>
+
+ * 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):
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)
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",
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.