gst-libs/gst/rtsp/gstrtspconnection.c: Don't error when poll_wait returns EAGAIN.

Original commit message from CVS:
* 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.
This commit is contained in:
Wim Taymans 2008-03-24 16:40:08 +00:00
parent 03e571d945
commit fc97139103
2 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,10 @@
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):

View file

@ -275,7 +275,7 @@ gst_rtsp_connection_connect (GstRTSPConnection * conn, GTimeVal * 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;
@ -408,7 +408,7 @@ gst_rtsp_connection_write (GstRTSPConnection * conn, const guint8 * data,
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;
@ -819,7 +819,7 @@ gst_rtsp_connection_read_internal (GstRTSPConnection * conn, guint8 * data,
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)
@ -1191,7 +1191,7 @@ gst_rtsp_connection_poll (GstRTSPConnection * conn, GstRTSPEvent events,
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;