volume: only queue output buffers

Fix volume function, we try to write as many bytes as we can to the
output buffer and set the offset and size in the chunk;
Add some logging
This commit is contained in:
Wim Taymans 2017-10-24 13:01:13 +02:00
parent eef6f380c1
commit 7f5c6ddd46
2 changed files with 18 additions and 11 deletions

View file

@ -521,7 +521,7 @@ impl_node_port_use_buffers(struct spa_node *node,
b = &port->buffers[i];
b->outbuf = buffers[i];
b->outstanding = direction == SPA_DIRECTION_INPUT ? true : false;
b->outstanding = (direction == SPA_DIRECTION_INPUT);
b->h = spa_buffer_find_meta(buffers[i], t->meta.Header);
if (!((d[0].type == t->data.MemPtr ||