mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
gstpoll: Only take into account active fds
This is needed so that select properly errors out on macosx (sigh)
This commit is contained in:
parent
dc3fb58a90
commit
edce400c79
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue