- Fix _x_io_select exiting when the select has been interrupted (EINTR errno)
authorhadess@cookie.hadess.net
Sat, 05 May 2007 00:41:54 +0100
changeset 87872b182beaba68
parent 8784 ce82ad163b0e
child 8788 998b9e26afd6
- 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
src/xine-engine/io_helper.c
     1.1 --- a/src/xine-engine/io_helper.c	Wed May 02 21:51:16 2007 +0200
     1.2 +++ b/src/xine-engine/io_helper.c	Sat May 05 00:41:54 2007 +0100
     1.3 @@ -276,7 +276,7 @@
     1.4      wset = (state & XIO_WRITE_READY) ? &fdset : NULL;
     1.5      ret = select (fd + 1, rset, wset, NULL, &select_timeout);
     1.6  
     1.7 -    if (ret == -1) {
     1.8 +    if (ret == -1 && errno != EINTR) {
     1.9        /* select error */
    1.10        return XIO_ERROR;
    1.11      } else if (ret == 1) {