+2008-08-26 Edward Hervey <edward.hervey@collabora.co.uk>
+
+ * gst/dccp/gstdccp.c: (gst_dccp_read_buffer),
+ (gst_dccp_send_buffer), (gst_dccp_set_sock_windowsize):
+ size_t's size varies by platform/architecture. Use glib convenience
+ macro instead. Fixes build on macosx.
+ Remove ending '\n' in debug statements.
+
2008-08-26 Edward Hervey <edward.hervey@collabora.co.uk>
* gst/pcapparse/gstpcapparse.c: (gst_pcap_parse_class_init):
*buf = gst_buffer_new_and_alloc (readsize);
bytes_read = read (socket, GST_BUFFER_DATA (*buf), readsize);
- GST_LOG_OBJECT (this, "bytes read %d\n", bytes_read);
+ GST_LOG_OBJECT (this, "bytes read %" G_GSIZE_FORMAT, bytes_read);
GST_LOG_OBJECT (this, "returning buffer of size %d", GST_BUFFER_SIZE (*buf));
return GST_FLOW_OK;
size = GST_BUFFER_SIZE (buffer);
data = GST_BUFFER_DATA (buffer);
- GST_LOG_OBJECT (this, "writing %d bytes\n", size);
+ GST_LOG_OBJECT (this, "writing %" G_GSIZE_FORMAT " bytes", size);
if (packet_size < 0) {
- GST_LOG_OBJECT (this, "error getting MTU\n");
+ GST_LOG_OBJECT (this, "error getting MTU");
return GST_FLOW_ERROR;
}
* since some OS's don't show the corrected value until then. */
rc = setsockopt (sock, SOL_DCCP, SO_RCVBUF,
(char *) &winSize, sizeof (winSize));
- GST_DEBUG_OBJECT (element, "set rcv sockbuf: %d\n", winSize);
+ GST_DEBUG_OBJECT (element, "set rcv sockbuf: %d", winSize);
} else {
/* send buffer -- set
* note: results are verified after connect() or listen(),
* since some OS's don't show the corrected value until then. */
rc = setsockopt (sock, SOL_DCCP, SO_SNDBUF,
(char *) &winSize, sizeof (winSize));
- GST_DEBUG_OBJECT (element, "set snd sockbuf: %d\n", winSize);
+ GST_DEBUG_OBJECT (element, "set snd sockbuf: %d", winSize);
}
if (rc < 0) {