mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
Improve debug and small cleanups
This commit is contained in:
parent
170c3e4d6c
commit
0726a608df
7 changed files with 31 additions and 14 deletions
|
|
@ -310,8 +310,8 @@ static int negotiate_link_buffers(struct impl *this, struct link *link)
|
|||
SPA_PARAM_BUFFERS_align, SPA_POD_Int(&align)) < 0)
|
||||
return -EINVAL;
|
||||
|
||||
spa_log_debug(this->log, "%p: buffers %d, blocks %d, size %d, align %d",
|
||||
this, buffers, blocks, size, align);
|
||||
spa_log_debug(this->log, "%p: buffers %d, blocks %d, size %d, align %d %d:%d",
|
||||
this, buffers, blocks, size, align, out_alloc, in_alloc);
|
||||
|
||||
datas = alloca(sizeof(struct spa_data) * blocks);
|
||||
memset(datas, 0, sizeof(struct spa_data) * blocks);
|
||||
|
|
@ -329,7 +329,7 @@ static int negotiate_link_buffers(struct impl *this, struct link *link)
|
|||
free(link->buffers);
|
||||
link->buffers = spa_buffer_alloc_array(buffers, flags, 0, NULL, blocks, datas, aligns);
|
||||
if (link->buffers == NULL)
|
||||
return -ENOMEM;
|
||||
return -errno;
|
||||
|
||||
link->n_buffers = buffers;
|
||||
|
||||
|
|
@ -896,8 +896,8 @@ static int impl_node_process(void *object)
|
|||
ready = 0;
|
||||
for (i = 0; i < this->n_nodes; i++) {
|
||||
r = spa_node_process(this->nodes[i]);
|
||||
spa_log_trace_fp(this->log, NAME " %p: process %d %d", this, i, r);
|
||||
|
||||
spa_log_trace_fp(this->log, NAME " %p: process %d %d: %s",
|
||||
this, i, r, r < 0 ? spa_strerror(r) : "ok");
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue