mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
Improve some debug
This commit is contained in:
parent
1eca773145
commit
2e3608a34f
9 changed files with 20 additions and 5 deletions
|
|
@ -530,7 +530,7 @@ impl_node_port_use_buffers(void *object,
|
|||
|
||||
spa_return_val_if_fail(CHECK_PORT(this, direction, port_id), -EINVAL);
|
||||
|
||||
spa_log_debug(this->log, "use buffers %d", n_buffers);
|
||||
spa_log_debug(this->log, NAME " %p: use %d buffers", this, n_buffers);
|
||||
|
||||
if (!this->have_format)
|
||||
return -EIO;
|
||||
|
|
|
|||
|
|
@ -549,6 +549,8 @@ impl_node_port_use_buffers(void *object,
|
|||
if (!this->have_format)
|
||||
return -EIO;
|
||||
|
||||
spa_log_debug(this->log, NAME " %p: use %d buffers", this, n_buffers);
|
||||
|
||||
if (this->n_buffers > 0) {
|
||||
spa_alsa_pause(this);
|
||||
if ((res = clear_buffers(this)) < 0)
|
||||
|
|
|
|||
|
|
@ -280,14 +280,14 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
|
|||
}
|
||||
|
||||
if ((res = spa_node_send_command(this->target, command)) < 0) {
|
||||
spa_log_error(this->log, NAME " %p: can't start convert: %s",
|
||||
spa_log_error(this->log, NAME " %p: can't send command: %s",
|
||||
this, spa_strerror(res));
|
||||
return res;
|
||||
}
|
||||
|
||||
if (this->target != this->slave) {
|
||||
if ((res = spa_node_send_command(this->slave, command)) < 0) {
|
||||
spa_log_error(this->log, NAME " %p: can't start slave: %s",
|
||||
spa_log_error(this->log, NAME " %p: can't send command: %s",
|
||||
this, spa_strerror(res));
|
||||
return res;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -872,6 +872,8 @@ impl_node_port_enum_params(void *object, int seq,
|
|||
spa_return_val_if_fail(this != NULL, -EINVAL);
|
||||
spa_return_val_if_fail(num != 0, -EINVAL);
|
||||
|
||||
spa_log_debug(this->log, NAME" %p: port %d.%d %d %u", this, direction, port_id, seq, id);
|
||||
|
||||
result.id = id;
|
||||
result.next = start;
|
||||
next:
|
||||
|
|
|
|||
|
|
@ -529,6 +529,9 @@ impl_node_port_enum_params(void *object, int seq,
|
|||
port = GET_PORT(this, direction, port_id);
|
||||
other = GET_PORT(this, SPA_DIRECTION_REVERSE(direction), port_id);
|
||||
|
||||
spa_log_debug(this->log, "%p: enum params port %d.%d %d %u",
|
||||
this, direction, port_id, seq, id);
|
||||
|
||||
result.id = id;
|
||||
result.next = start;
|
||||
next:
|
||||
|
|
|
|||
|
|
@ -424,6 +424,9 @@ impl_node_port_enum_params(void *object, int seq,
|
|||
port = GET_PORT(this, direction, port_id);
|
||||
other = GET_PORT(this, SPA_DIRECTION_REVERSE(direction), port_id);
|
||||
|
||||
spa_log_debug(this->log, "%p: enum params port %d.%d %d %u",
|
||||
this, direction, port_id, seq, id);
|
||||
|
||||
result.id = id;
|
||||
result.next = start;
|
||||
next:
|
||||
|
|
|
|||
|
|
@ -452,7 +452,8 @@ impl_node_port_enum_params(void *object, int seq,
|
|||
spa_return_val_if_fail(this != NULL, -EINVAL);
|
||||
spa_return_val_if_fail(num != 0, -EINVAL);
|
||||
|
||||
spa_log_debug(this->log, "%p: enum params %d %d %u %u", this, seq, direction, port_id, id);
|
||||
spa_log_debug(this->log, "%p: enum params port %d.%d %d %u",
|
||||
this, direction, port_id, seq, id);
|
||||
|
||||
spa_return_val_if_fail(CHECK_PORT(this, direction, port_id), -EINVAL);
|
||||
|
||||
|
|
|
|||
|
|
@ -384,6 +384,9 @@ impl_node_port_enum_params(void *object, int seq,
|
|||
port = GET_PORT(this, direction, port_id);
|
||||
other = GET_PORT(this, SPA_DIRECTION_REVERSE(direction), port_id);
|
||||
|
||||
spa_log_debug(this->log, "%p: enum params port %d.%d %d %u",
|
||||
this, direction, port_id, seq, id);
|
||||
|
||||
result.id = id;
|
||||
result.next = start;
|
||||
next:
|
||||
|
|
|
|||
|
|
@ -438,7 +438,8 @@ impl_node_port_enum_params(void *object, int seq,
|
|||
|
||||
port = GET_PORT(this, direction, port_id);
|
||||
|
||||
spa_log_debug(this->log, "%p: enum params %d %u", this, seq, id);
|
||||
spa_log_debug(this->log, "%p: enum params port %d.%d %d %u",
|
||||
this, direction, port_id, seq, id);
|
||||
|
||||
result.id = id;
|
||||
result.next = start;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue