Improve some debug

This commit is contained in:
Wim Taymans 2019-10-18 21:54:25 +02:00
parent 1eca773145
commit 2e3608a34f
9 changed files with 20 additions and 5 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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