mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
plugins/elements/gstfdsrc.c: Get the type and printf conversion specifiers right.
Original commit message from CVS: * plugins/elements/gstfdsrc.c: (gst_fd_src_create): Get the type and printf conversion specifiers right.
This commit is contained in:
parent
6e0416787d
commit
f24b0e54a0
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2006-11-03 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
Patch by: Mark Nauwelaerts <manauw at skynet dot be>
|
Patch by: Mark Nauwelaerts <manauw at skynet dot be>
|
||||||
|
|
|
@ -321,7 +321,7 @@ gst_fd_src_create (GstPushSrc * psrc, GstBuffer ** outbuf)
|
||||||
{
|
{
|
||||||
GstFdSrc *src;
|
GstFdSrc *src;
|
||||||
GstBuffer *buf;
|
GstBuffer *buf;
|
||||||
glong readbytes;
|
gssize readbytes;
|
||||||
guint blocksize;
|
guint blocksize;
|
||||||
|
|
||||||
#ifndef HAVE_WIN32
|
#ifndef HAVE_WIN32
|
||||||
|
@ -369,7 +369,7 @@ gst_fd_src_create (GstPushSrc * psrc, GstBuffer ** outbuf)
|
||||||
|
|
||||||
do {
|
do {
|
||||||
readbytes = read (src->fd, GST_BUFFER_DATA (buf), blocksize);
|
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 */
|
} while (readbytes == -1 && errno == EINTR); /* retry if interrupted */
|
||||||
|
|
||||||
if (readbytes < 0)
|
if (readbytes < 0)
|
||||||
|
|
Loading…
Reference in a new issue