spa: support: loop: assert source's loop when dispatching

This commit is contained in:
Barnabás Pőcze 2022-03-06 14:56:29 +01:00 committed by Wim Taymans
parent 6e705da101
commit d6dfa93b40

View file

@ -387,6 +387,9 @@ static int loop_iterate(void *object, int timeout)
* can then reset the rmask to suppress the callback */
for (i = 0; i < nfds; i++) {
struct spa_source *s = ep[i].data;
spa_assert(s->loop == &impl->loop);
s->rmask = ep[i].events;
/* already active in another iteration of the loop,
* remove it from that iteration */