diff --git a/ChangeLog b/ChangeLog index 07e4d7a71e..68200ac8e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-11-03 Wim Taymans + + * plugins/elements/gstfdsrc.c: (gst_fd_src_create): + Get the type and printf conversion specifiers right. + 2006-11-03 Wim Taymans Patch by: Mark Nauwelaerts diff --git a/plugins/elements/gstfdsrc.c b/plugins/elements/gstfdsrc.c index c1f90c0252..fb28c779fb 100644 --- a/plugins/elements/gstfdsrc.c +++ b/plugins/elements/gstfdsrc.c @@ -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)