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:
Wim Taymans 2018-02-16 16:55:18 +01:00
parent 5034770eae
commit 922099c67e

View file

@ -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;