mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
system: use the same bits as POLL and EPOLL
Use the same bits for the io mask as POLL and EPOLL so that we can avoid conversions.
This commit is contained in:
parent
49a5e97d69
commit
59bf522ce1
4 changed files with 10 additions and 82 deletions
|
|
@ -440,15 +440,7 @@ static void *loop(void *user_data)
|
|||
/* after */
|
||||
for (i = 0; i < data->n_sources; i++) {
|
||||
struct spa_source *p = &data->sources[i];
|
||||
p->rmask = 0;
|
||||
if (data->fds[i].revents & POLLIN)
|
||||
p->rmask |= SPA_IO_IN;
|
||||
if (data->fds[i].revents & POLLOUT)
|
||||
p->rmask |= SPA_IO_OUT;
|
||||
if (data->fds[i].revents & POLLHUP)
|
||||
p->rmask |= SPA_IO_HUP;
|
||||
if (data->fds[i].revents & POLLERR)
|
||||
p->rmask |= SPA_IO_ERR;
|
||||
p->rmask = data->fds[i].revents;
|
||||
}
|
||||
for (i = 0; i < data->n_sources; i++) {
|
||||
struct spa_source *p = &data->sources[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue