projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
dc3fb58
)
gstpoll: Only take into account active fds
author
Edward Hervey
<bilboed@bilboed.com>
Mon, 12 Oct 2009 10:01:59 +0000
(12:01 +0200)
committer
Edward Hervey
<bilboed@bilboed.com>
Mon, 12 Oct 2009 10:01:59 +0000
(12:01 +0200)
This is needed so that select properly errors out on macosx (sigh)
gst/gstpoll.c
patch
|
blob
|
history
diff --git
a/gst/gstpoll.c
b/gst/gstpoll.c
index
17c0a55
..
a2d432b
100644
(file)
--- a/
gst/gstpoll.c
+++ b/
gst/gstpoll.c
@@
-297,7
+297,7
@@
pollfd_to_fd_set (GstPoll * set, fd_set * readfds, fd_set * writefds,
FD_SET (pfd->fd, writefds);
if (pfd->events)
FD_SET (pfd->fd, errorfds);
- if (pfd->fd > max_fd)
+ if (pfd->fd > max_fd
&& (pfd->events & (POLLIN | POLLOUT))
)
max_fd = pfd->fd;
}
}