From 2a8a08f303294d2efe8a599ede17035c46339c78 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 20 Jul 2024 14:03:20 +0200 Subject: [PATCH] loop: signal when queue is full When our queue is full, signal the wakeup event to make sure the thread will wake up and try to clear the queue before we go to sleep. --- 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 11ac7235d..c9ca20025 100644 --- a/spa/plugins/support/loop.c +++ b/spa/plugins/support/loop.c @@ -338,6 +338,7 @@ xrun: spa_log_warn(impl->log, "%p: queue full %d, need %zd (%d suppressed)", queue, avail, need, suppressed); } + loop_signal_event(impl, impl->wakeup); if (impl->retry_timeout == 0) return -EPIPE; usleep(impl->retry_timeout);