mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
Small fixes
Init ptr in mem Use a default memory size when no params Improve debug Always push after we have a buffer from pull
This commit is contained in:
parent
1feec309ec
commit
4433203d5f
4 changed files with 8 additions and 4 deletions
|
|
@ -516,6 +516,8 @@ static int do_allocation(struct pw_link *this, uint32_t in_state, uint32_t out_s
|
|||
max_buffers);
|
||||
minsize = SPA_MAX(minsize, qminsize);
|
||||
stride = SPA_MAX(stride, qstride);
|
||||
} else {
|
||||
minsize = 4096;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -554,8 +556,8 @@ static int do_allocation(struct pw_link *this, uint32_t in_state, uint32_t out_s
|
|||
1,
|
||||
data_sizes, data_strides, &impl->buffer_mem);
|
||||
|
||||
pw_log_debug("allocating %d input buffers %p", impl->n_buffers,
|
||||
impl->buffers);
|
||||
pw_log_debug("allocating %d input buffers %p %zd %zd", impl->n_buffers,
|
||||
impl->buffers, minsize, stride);
|
||||
}
|
||||
|
||||
if (out_flags & SPA_PORT_INFO_FLAG_CAN_ALLOC_BUFFERS) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue