summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhadess@cookie.hadess.net <none@none>2007-05-05 00:41:54 +0100
committerhadess@cookie.hadess.net <none@none>2007-05-05 00:41:54 +0100
commit643c083ce09d285ad3a93187a5224472c159542a (patch)
treee929d054b112ce14e344529bbafa11225101b79c
parentc81f80094b17f05a3e526893a9a21cc9fea87638 (diff)
downloadxine-lib-643c083ce09d285ad3a93187a5224472c159542a.tar.gz
xine-lib-643c083ce09d285ad3a93187a5224472c159542a.tar.bz2
- Fix _x_io_select exiting when the select has been interrupted (EINTR errno)
when we want to run until the timeout has occurred, partially fixes Totem's browser plugin playing back browser streams with the xine-lib backend See http://bugzilla.gnome.org/show_bug.cgi?id=375866 for details
-rw-r--r--src/xine-engine/io_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xine-engine/io_helper.c b/src/xine-engine/io_helper.c
index ad36c565e..67dddcfdc 100644
--- a/src/xine-engine/io_helper.c
+++ b/src/xine-engine/io_helper.c
@@ -276,7 +276,7 @@ int _x_io_select (xine_stream_t *stream, int fd, int state, int timeout_msec) {
wset = (state & XIO_WRITE_READY) ? &fdset : NULL;
ret = select (fd + 1, rset, wset, NULL, &select_timeout);
- if (ret == -1) {
+ if (ret == -1 && errno != EINTR) {
/* select error */
return XIO_ERROR;
} else if (ret == 1) {