plugins/elements/gstfdsrc.c: Get the type and printf conversion specifiers right.
authorWim Taymans <wim.taymans@gmail.com>
Fri, 3 Nov 2006 15:04:40 +0000 (15:04 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Fri, 3 Nov 2006 15:04:40 +0000 (15:04 +0000)
Original commit message from CVS:
* plugins/elements/gstfdsrc.c: (gst_fd_src_create):
Get the type and printf conversion specifiers right.

ChangeLog
plugins/elements/gstfdsrc.c

index 07e4d7a..68200ac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2006-11-03  Wim Taymans  <wim@fluendo.com>
 
+       * plugins/elements/gstfdsrc.c: (gst_fd_src_create):
+       Get the type and printf conversion specifiers right.
+
+2006-11-03  Wim Taymans  <wim@fluendo.com>
+
        Patch by: Mark Nauwelaerts <manauw at skynet dot be>
 
        * gst/gstpad.c: (gst_pad_init), (pre_activate),
index c1f90c0..fb28c77 100644 (file)
@@ -321,7 +321,7 @@ gst_fd_src_create (GstPushSrc * psrc, GstBuffer ** outbuf)
 {
   GstFdSrc *src;
   GstBuffer *buf;
-  glong readbytes;
+  gssize readbytes;
   guint blocksize;
 
 #ifndef HAVE_WIN32
@@ -369,7 +369,7 @@ gst_fd_src_create (GstPushSrc * psrc, GstBuffer ** outbuf)
 
   do {
     readbytes = read (src->fd, GST_BUFFER_DATA (buf), blocksize);
-    GST_LOG_OBJECT (src, "read %d", readbytes);
+    GST_LOG_OBJECT (src, "read %" G_GSSIZE_FORMAT, readbytes);
   } while (readbytes == -1 && errno == EINTR);  /* retry if interrupted */
 
   if (readbytes < 0)