mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
spa: warn out of buffers
Running out of buffers is pretty bad and warrants a warning because it can cause loss of audio. See #3316
This commit is contained in:
parent
21d16b1ad5
commit
baa5497617
4 changed files with 12 additions and 6 deletions
|
|
@ -2298,8 +2298,9 @@ static inline struct buffer *peek_buffer(struct impl *this, struct port *port)
|
|||
struct buffer *b;
|
||||
|
||||
if (spa_list_is_empty(&port->queue)) {
|
||||
spa_log_trace_fp(this->log, "%p: out of buffers on port %d %d",
|
||||
this, port->id, port->n_buffers);
|
||||
if (port->n_buffers > 0)
|
||||
spa_log_warn(this->log, "%p: out of buffers on port %d %d",
|
||||
this, port->id, port->n_buffers);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue