From 0ad7cb3298b0633e98d1c6941ecfb3e811004515 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 9 Aug 2022 20:38:06 +0200 Subject: [PATCH] loop: flush items before stopping Before leaving the loop, flush out any pending items in the invoke queue. See #2631 --- spa/plugins/support/loop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/spa/plugins/support/loop.c b/spa/plugins/support/loop.c index e02cbed87..758ce59db 100644 --- a/spa/plugins/support/loop.c +++ b/spa/plugins/support/loop.c @@ -350,6 +350,7 @@ static void loop_leave(void *object) if (--impl->enter_count == 0) { impl->thread = 0; + flush_items(impl); impl->polling = false; } }