mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -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
8a62563d5b
commit
2a8a08f303
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