mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
loop: clear rmask after dispatching all sources
To make the unit tests work again.
This commit is contained in:
parent
93530df139
commit
4b5b94303e
1 changed files with 5 additions and 2 deletions
|
|
@ -475,11 +475,14 @@ static int loop_iterate(void *object, int timeout)
|
||||||
if (SPA_UNLIKELY(!spa_list_is_empty(&impl->destroy_list)))
|
if (SPA_UNLIKELY(!spa_list_is_empty(&impl->destroy_list)))
|
||||||
process_destroy(impl);
|
process_destroy(impl);
|
||||||
|
|
||||||
|
for (i = 0; i < nfds; i++) {
|
||||||
|
struct spa_source *s = ep[i].data;
|
||||||
|
if (SPA_LIKELY(s && s->rmask))
|
||||||
|
s->func(s);
|
||||||
|
}
|
||||||
for (i = 0; i < nfds; i++) {
|
for (i = 0; i < nfds; i++) {
|
||||||
struct spa_source *s = ep[i].data;
|
struct spa_source *s = ep[i].data;
|
||||||
if (SPA_LIKELY(s)) {
|
if (SPA_LIKELY(s)) {
|
||||||
if (SPA_LIKELY(s->rmask))
|
|
||||||
s->func(s);
|
|
||||||
s->rmask = 0;
|
s->rmask = 0;
|
||||||
s->priv = NULL;
|
s->priv = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue