mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
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.
This commit is contained in:
parent
77147c9cd7
commit
b3688b163d
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue