mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
small cleanups
This commit is contained in:
parent
d88b88444d
commit
008df86c8f
3 changed files with 11 additions and 9 deletions
|
|
@ -811,7 +811,7 @@ impl_node_port_use_buffers(struct spa_node *node,
|
|||
size += d->maxsize;
|
||||
} else {
|
||||
b->buffer.datas[j].type = SPA_ID_INVALID;
|
||||
b->buffer.datas[j].data = 0;
|
||||
b->buffer.datas[j].data = NULL;
|
||||
spa_log_error(this->log, "invalid memory type %d", d->type);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -353,8 +353,16 @@ static int impl_get_port_ids(struct spa_node *node,
|
|||
uint32_t *output_ids,
|
||||
uint32_t n_output_ids)
|
||||
{
|
||||
if (n_output_ids > 0)
|
||||
output_ids[0] = 0;
|
||||
struct stream *impl = SPA_CONTAINER_OF(node, struct stream, impl_node);
|
||||
|
||||
if (impl->direction == SPA_DIRECTION_INPUT) {
|
||||
if (n_input_ids > 0)
|
||||
input_ids[0] = 0;
|
||||
}
|
||||
else {
|
||||
if (n_output_ids > 0)
|
||||
output_ids[0] = 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue