openbsd-ports/audio/rhythmbox/patches/patch-plugins_daap_rb-daap-src_c

49 lines
1.8 KiB
Plaintext

$OpenBSD: patch-plugins_daap_rb-daap-src_c,v 1.4 2009/07/12 20:05:23 ajacoutot Exp $
--- plugins/daap/rb-daap-src.c.orig Tue Jun 30 01:38:57 2009
+++ plugins/daap/rb-daap-src.c Mon Jul 6 08:36:00 2009
@@ -297,7 +297,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;
}
@@ -311,7 +311,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;
@@ -335,7 +335,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;
}
@@ -387,7 +387,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;
@@ -693,7 +693,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);