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:
Wim Taymans 2018-03-22 18:07:57 +01:00
parent f9ceedb714
commit 41a3a924ef
5 changed files with 205 additions and 270 deletions

View file

@ -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];