mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04: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
|
|
@ -155,7 +155,7 @@ static int on_source_ready(void *_data, int status)
|
|||
struct spa_data *datas;
|
||||
struct spa_io_buffers *io = &data->source_output[0];
|
||||
|
||||
if (io->status != SPA_STATUS_HAVE_BUFFER ||
|
||||
if (io->status != SPA_STATUS_HAVE_DATA ||
|
||||
io->buffer_id > MAX_BUFFERS)
|
||||
return -EINVAL;
|
||||
|
||||
|
|
@ -214,7 +214,7 @@ static int on_source_ready(void *_data, int status)
|
|||
munmap(map, datas[0].maxsize + datas[0].mapoffset);
|
||||
}
|
||||
|
||||
io->status = SPA_STATUS_NEED_BUFFER;
|
||||
io->status = SPA_STATUS_NEED_DATA;
|
||||
|
||||
if ((res = spa_node_process(data->source)) < 0)
|
||||
printf("got process error %d\n", res);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue