Follow the data/size argument order convention to make the api
more consistent.
This commit is contained in:
Wim Taymans 2017-11-20 15:26:44 +01:00
parent 7f931464e8
commit 5bebfe022b
50 changed files with 253 additions and 252 deletions

View file

@ -83,7 +83,7 @@ static inline void init_type(struct type *type, struct spa_type_map *map)
struct buffer {
struct spa_buffer buffer;
struct spa_meta metas[2];
struct spa_meta metas[1];
struct spa_meta_header header;
struct spa_data datas[1];
struct spa_chunk chunks[1];
@ -129,10 +129,10 @@ init_buffer(struct data *data, struct spa_buffer **bufs, struct buffer *ba, int
bufs[i] = &b->buffer;
b->buffer.id = i;
b->buffer.n_metas = 2;
b->buffer.metas = b->metas;
b->buffer.n_datas = 1;
b->buffer.n_metas = 1;
b->buffer.datas = b->datas;
b->buffer.n_datas = 1;
b->header.flags = 0;
b->header.seq = 0;
@ -262,9 +262,9 @@ static void do_remove_source(struct spa_source *source)
static int
do_invoke(struct spa_loop *loop,
spa_invoke_func_t func, uint32_t seq, size_t size, const void *data, bool block, void *user_data)
spa_invoke_func_t func, uint32_t seq, const void *data, size_t size, bool block, void *user_data)
{
return func(loop, false, seq, size, data, user_data);
return func(loop, false, seq, data, size, user_data);
}
static int make_nodes(struct data *data, const char *device)