mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
spa: support: loop: assert source's loop when dispatching
This commit is contained in:
parent
6e705da101
commit
d6dfa93b40
1 changed files with 3 additions and 0 deletions
|
|
@ -387,6 +387,9 @@ static int loop_iterate(void *object, int timeout)
|
||||||
* can then reset the rmask to suppress the callback */
|
* can then reset the rmask to suppress the callback */
|
||||||
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;
|
||||||
|
|
||||||
|
spa_assert(s->loop == &impl->loop);
|
||||||
|
|
||||||
s->rmask = ep[i].events;
|
s->rmask = ep[i].events;
|
||||||
/* already active in another iteration of the loop,
|
/* already active in another iteration of the loop,
|
||||||
* remove it from that iteration */
|
* remove it from that iteration */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue