$OpenBSD: patch-plugins_daap_rb-daap-src_c,v 1.2 2008/06/09 22:59:42 ajacoutot Exp $
--- plugins/daap/rb-daap-src.c.orig	Thu Feb 28 12:16:39 2008
+++ plugins/daap/rb-daap-src.c	Sun Jun  8 19:59:11 2008
@@ -290,7 +290,7 @@ rb_daap_src_write (RBDAAPSrc *src, const guchar *buf, 
 		bytes_written += wrote;
 	}
 
-	GST_DEBUG_OBJECT (src, "wrote %d bytes succesfully", bytes_written);
+	GST_DEBUG_OBJECT (src, "wrote %zu bytes succesfully", bytes_written);
 	return bytes_written;
 }
 
@@ -304,7 +304,7 @@ rb_daap_src_read (RBDAAPSrc *src, guchar *buf, size_t 
 		if (bytes_read > src->buffer_size)
 			bytes_read = src->buffer_size;
 
-		GST_DEBUG_OBJECT (src, "reading %d bytes from buffer", bytes_read);
+		GST_DEBUG_OBJECT (src, "reading %zu bytes from buffer", bytes_read);
 		memcpy (buf, src->buffer, bytes_read);
 		src->buffer += bytes_read;
 		src->buffer_size -= bytes_read;
@@ -328,7 +328,7 @@ rb_daap_src_read (RBDAAPSrc *src, guchar *buf, size_t 
 		bytes_read += ret;
 	}
 
-	GST_DEBUG_OBJECT (src, "read %d bytes succesfully", bytes_read);
+	GST_DEBUG_OBJECT (src, "read %zu bytes succesfully", bytes_read);
 	return bytes_read;
 }
 
@@ -380,7 +380,7 @@ rb_daap_src_read_chunk_size (RBDAAPSrc *src, gboolean 
 				return FALSE;
 			}
 
-			GST_DEBUG_OBJECT (src, "got HTTP chunk size %lu", *chunk_size);
+			GST_DEBUG_OBJECT (src, "got HTTP chunk size %lu", (long int)*chunk_size);
 			return TRUE;
 		} else if (isxdigit (ch)) {
 			chunk_buf[i++] = ch;
@@ -725,7 +725,7 @@ rb_daap_src_create (GstPushSrc *psrc, GstBuffer **outb
 
 	buf = gst_buffer_new_and_alloc (readsize);
 
-	GST_LOG_OBJECT (src, "Reading %d bytes", readsize);
+	GST_LOG_OBJECT (src, "Reading %zu bytes", readsize);
 	readsize = rb_daap_src_read (src, GST_BUFFER_DATA (buf), readsize);
 	if (readsize < 0) {
 		GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL), GST_ERROR_SYSTEM);
