mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-18 08:56:45 -05:00
stream: add pw_stream_new_simple
Make a new method that also makes a remote and connects to it transparently. This saves some lines of code.
This commit is contained in:
parent
f9ceedb714
commit
41a3a924ef
5 changed files with 205 additions and 270 deletions
|
|
@ -548,7 +548,7 @@ static int impl_node_process(struct spa_node *node)
|
|||
if (d->io->status != SPA_STATUS_HAVE_BUFFER)
|
||||
return SPA_STATUS_NEED_BUFFER;
|
||||
|
||||
if (d->io->buffer_id > d->n_buffers)
|
||||
if (d->io->buffer_id >= d->n_buffers)
|
||||
return SPA_STATUS_NEED_BUFFER;
|
||||
|
||||
buf = d->buffers[d->io->buffer_id];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue