mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
port: simplify buffer allocation
Use just one function to do buffer allocation on a port. Remove some unused variables.
This commit is contained in:
parent
a319ec55ea
commit
06446e0d64
6 changed files with 91 additions and 185 deletions
|
|
@ -334,7 +334,7 @@ static int impl_node_set_io(void *object, uint32_t id, void *data, size_t size)
|
|||
struct impl *impl = this->impl;
|
||||
struct pw_memmap *mm;
|
||||
uint32_t memid, mem_offset, mem_size;
|
||||
uint32_t tag[5] = { impl->node_id, id };
|
||||
uint32_t tag[5] = { impl->node_id, id, };
|
||||
|
||||
if (impl->this.flags & 1)
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue