rename HAVE/NEED_BUFFER -> HAVE/NEED_DATA

It is more generic and works with control-only ports as well
This commit is contained in:
Wim Taymans 2019-09-16 12:55:23 +02:00
parent d648ea4ad3
commit 8b85cc225e
40 changed files with 176 additions and 176 deletions

View file

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