mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
rename HAVE/NEED_BUFFER -> HAVE/NEED_DATA
It is more generic and works with control-only ports as well
This commit is contained in:
parent
d648ea4ad3
commit
8b85cc225e
40 changed files with 176 additions and 176 deletions
|
|
@ -428,11 +428,11 @@ static int impl_node_process(void *object)
|
|||
struct spa_buffer *buf;
|
||||
int res;
|
||||
|
||||
if (d->io->status != SPA_STATUS_HAVE_BUFFER)
|
||||
return SPA_STATUS_NEED_BUFFER;
|
||||
if (d->io->status != SPA_STATUS_HAVE_DATA)
|
||||
return SPA_STATUS_NEED_DATA;
|
||||
|
||||
if (d->io->buffer_id >= d->n_buffers)
|
||||
return SPA_STATUS_NEED_BUFFER;
|
||||
return SPA_STATUS_NEED_DATA;
|
||||
|
||||
buf = d->buffers[d->io->buffer_id];
|
||||
|
||||
|
|
@ -443,7 +443,7 @@ static int impl_node_process(void *object)
|
|||
|
||||
update_param(d);
|
||||
|
||||
return d->io->status = SPA_STATUS_NEED_BUFFER;
|
||||
return d->io->status = SPA_STATUS_NEED_DATA;
|
||||
}
|
||||
|
||||
static const struct spa_node_methods impl_node = {
|
||||
|
|
|
|||
|
|
@ -442,11 +442,11 @@ static int impl_node_process(void *object)
|
|||
od[0].chunk->stride = 0;
|
||||
|
||||
io->buffer_id = b->id;
|
||||
io->status = SPA_STATUS_HAVE_BUFFER;
|
||||
io->status = SPA_STATUS_HAVE_DATA;
|
||||
|
||||
update_volume(d);
|
||||
|
||||
return SPA_STATUS_HAVE_BUFFER;
|
||||
return SPA_STATUS_HAVE_DATA;
|
||||
}
|
||||
|
||||
static const struct spa_node_methods impl_node = {
|
||||
|
|
|
|||
|
|
@ -316,9 +316,9 @@ static int impl_node_process(void *object)
|
|||
|
||||
handle_events(d);
|
||||
|
||||
d->io->status = SPA_STATUS_NEED_BUFFER;
|
||||
d->io->status = SPA_STATUS_NEED_DATA;
|
||||
|
||||
return SPA_STATUS_NEED_BUFFER;
|
||||
return SPA_STATUS_NEED_DATA;
|
||||
}
|
||||
|
||||
static const struct spa_node_methods impl_node = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue