mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
gstpoll: Fix for (p)select backend
We need to reset the revents field of each pollfd when reading the results from select else we'll end up with stray info from previous calls to select.
This commit is contained in:
parent
ee5b369ffd
commit
4f94b94bff
1 changed files with 1 additions and 0 deletions
|
@ -376,6 +376,7 @@ fd_set_to_pollfd (GstPoll * set, fd_set * readfds, fd_set * writefds,
|
|||
struct pollfd *pfd = &g_array_index (set->active_fds, struct pollfd, i);
|
||||
|
||||
if (pfd->fd < FD_SETSIZE) {
|
||||
pfd->revents = 0;
|
||||
if (FD_ISSET (pfd->fd, readfds))
|
||||
pfd->revents |= POLLIN;
|
||||
if (FD_ISSET (pfd->fd, writefds))
|
||||
|
|
Loading…
Reference in a new issue