plugins/elements/: Pull in patch from head to handle EAGAIN. Fixes: #524041

Original commit message from CVS:
* plugins/elements/gstfdsink.c:
* plugins/elements/gstfdsrc.c:
Pull in patch from head to handle EAGAIN. Fixes: #524041
This commit is contained in:
Jan Schmidt 2008-04-03 14:03:17 +00:00
parent 7f836e1c45
commit fbde682002
4 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2008-04-03 Jan Schmidt <jan.schmidt@sun.com>
* plugins/elements/gstfdsink.c:
* plugins/elements/gstfdsrc.c:
Pull in patch from head to handle EAGAIN. Fixes: #524041
=== release 0.10.18 ===
2008-03-20 Jan Schmidt <jan.schmidt@sun.com>

2
common

@ -1 +1 @@
Subproject commit 170f8e91adc7157f6e708ffa58ca22d10e4e45da
Subproject commit fda6da5f2b9b000f7e1df8ffb44a6185ffd9799b

View file

@ -233,7 +233,7 @@ again:
GST_DEBUG_OBJECT (fdsink, "going into select, have %d bytes to write",
size);
retval = gst_poll_wait (fdsink->fdset, GST_CLOCK_TIME_NONE);
} while (retval == -1 && errno == EINTR);
} while (retval == -1 && (errno == EINTR || errno == EAGAIN));
if (retval == -1) {
if (errno == EBUSY)

View file

@ -342,7 +342,7 @@ gst_fd_src_create (GstPushSrc * psrc, GstBuffer ** outbuf)
#ifndef HAVE_WIN32
do {
retval = gst_poll_wait (src->fdset, GST_CLOCK_TIME_NONE);
} while (retval == -1 && errno == EINTR);
} while (retval == -1 && (errno == EINTR || errno == EAGAIN)); /* retry if interrupted */
if (retval == -1) {
if (errno == EBUSY)