mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
Update for new adapter nodes
This commit is contained in:
parent
d00b9f1635
commit
67c1dca897
5 changed files with 52 additions and 38 deletions
|
|
@ -286,10 +286,18 @@ int pa_mainloop_prepare(pa_mainloop *m, int timeout)
|
|||
SPA_EXPORT
|
||||
int pa_mainloop_poll(pa_mainloop *m)
|
||||
{
|
||||
int res;
|
||||
|
||||
if (m->quit)
|
||||
return -2;
|
||||
|
||||
return m->n_events = pw_loop_iterate(m->loop, m->timeout);
|
||||
res = pw_loop_iterate(m->loop, m->timeout);
|
||||
if (res < 0) {
|
||||
if (res == -EINTR)
|
||||
res = 0;
|
||||
}
|
||||
m->n_events = res;
|
||||
return res;
|
||||
}
|
||||
|
||||
SPA_EXPORT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue