mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-15 07:00:05 -05:00
link: always make ouput owner of buffers
Make the output pad owner of the buffers, if we have multiple outgoing connections from the outpad we don't want that buffers to disappear.
This commit is contained in:
parent
5034770eae
commit
922099c67e
1 changed files with 4 additions and 0 deletions
|
|
@ -685,6 +685,10 @@ static int do_allocation(struct pw_link *this, uint32_t in_state, uint32_t out_s
|
|||
}
|
||||
if (SPA_RESULT_IS_ASYNC(res))
|
||||
pw_work_queue_add(impl->work, output->node, res, complete_paused, output);
|
||||
|
||||
output->buffer_mem = this->buffer_mem;
|
||||
output->allocated = false;
|
||||
this->buffer_owner = output;
|
||||
} else {
|
||||
asprintf(&error, "no common buffer alloc found");
|
||||
goto error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue