mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
bluez5: guard against processing when errored or not started
Add some guards against doing processing when there has been an error or the node is not started. Set error status to IO. Continue driving on IO errors.
This commit is contained in:
parent
8fff69353b
commit
1664df2c85
4 changed files with 50 additions and 29 deletions
|
|
@ -1444,8 +1444,14 @@ static int produce_buffer(struct impl *this)
|
|||
io->buffer_id = SPA_ID_INVALID;
|
||||
}
|
||||
|
||||
if (!this->source.loop) {
|
||||
io->status = -EIO;
|
||||
return SPA_STATUS_STOPPED;
|
||||
}
|
||||
|
||||
/* Handle buffering */
|
||||
process_buffering(this);
|
||||
if (this->started)
|
||||
process_buffering(this);
|
||||
|
||||
/* Return if there are no buffers ready to be processed */
|
||||
if (spa_list_is_empty(&port->ready))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue