2008-03-24 Wim Taymans <wim.taymans@collabora.co.uk>
+ * gst-libs/gst/rtsp/gstrtspconnection.c:
+ (gst_rtsp_connection_connect), (gst_rtsp_connection_write),
+ (gst_rtsp_connection_read_internal), (gst_rtsp_connection_poll):
+ Don't error when poll_wait returns EAGAIN.
+
+2008-03-24 Wim Taymans <wim.taymans@collabora.co.uk>
+
* gst/playback/gstqueue2.c: (gst_queue_is_filled):
The queue is never filled when there are no buffers in the queue at all.
Fixes #523993.
do {
retval = gst_poll_wait (conn->fdset, to);
- } while (retval == -1 && errno == EINTR);
+ } while (retval == -1 && (errno == EINTR || errno == EAGAIN));
if (retval == 0)
goto timeout;
do {
retval = gst_poll_wait (conn->fdset, to);
- } while (retval == -1 && errno == EINTR);
+ } while (retval == -1 && (errno == EINTR || errno == EAGAIN));
if (retval == 0)
goto timeout;
do {
retval = gst_poll_wait (conn->fdset, to);
- } while (retval == -1 && errno == EINTR);
+ } while (retval == -1 && (errno == EINTR || errno == EAGAIN));
if (retval == -1) {
if (errno == EBUSY)
do {
retval = gst_poll_wait (conn->fdset, to);
- } while (retval == -1 && errno == EINTR);
+ } while (retval == -1 && (errno == EINTR || errno == EAGAIN));
if (retval == 0)
goto select_timeout;