mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
improve some debug
This commit is contained in:
parent
7a05a35f8e
commit
4d99bf9297
2 changed files with 9 additions and 8 deletions
|
|
@ -258,7 +258,7 @@ static int impl_node_add_port(struct spa_node *node, enum spa_direction directio
|
||||||
this->last_port = port_id + 1;
|
this->last_port = port_id + 1;
|
||||||
port->valid = true;
|
port->valid = true;
|
||||||
|
|
||||||
spa_log_info(this->log, NAME " %p: add port %d %d", this, port_id, this->last_port);
|
spa_log_debug(this->log, NAME " %p: add port %d %d", this, port_id, this->last_port);
|
||||||
emit_port_info(this, port, true);
|
emit_port_info(this, port, true);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -295,7 +295,7 @@ impl_node_remove_port(struct spa_node *node, enum spa_direction direction, uint3
|
||||||
|
|
||||||
this->last_port = i + 1;
|
this->last_port = i + 1;
|
||||||
}
|
}
|
||||||
spa_log_info(this->log, NAME " %p: remove port %d %d", this, port_id, this->last_port);
|
spa_log_debug(this->log, NAME " %p: remove port %d %d", this, port_id, this->last_port);
|
||||||
|
|
||||||
spa_node_emit_port_info(&this->hooks, direction, port_id, NULL);
|
spa_node_emit_port_info(&this->hooks, direction, port_id, NULL);
|
||||||
|
|
||||||
|
|
@ -450,7 +450,7 @@ impl_node_port_enum_params(struct spa_node *node, int seq,
|
||||||
static int clear_buffers(struct impl *this, struct port *port)
|
static int clear_buffers(struct impl *this, struct port *port)
|
||||||
{
|
{
|
||||||
if (port->n_buffers > 0) {
|
if (port->n_buffers > 0) {
|
||||||
spa_log_info(this->log, NAME " %p: clear buffers %p", this, port);
|
spa_log_debug(this->log, NAME " %p: clear buffers %p", this, port);
|
||||||
port->n_buffers = 0;
|
port->n_buffers = 0;
|
||||||
spa_list_init(&port->queue);
|
spa_list_init(&port->queue);
|
||||||
}
|
}
|
||||||
|
|
@ -530,7 +530,7 @@ static int port_set_format(struct spa_node *node,
|
||||||
if (!port->have_format) {
|
if (!port->have_format) {
|
||||||
this->n_formats++;
|
this->n_formats++;
|
||||||
port->have_format = true;
|
port->have_format = true;
|
||||||
spa_log_info(this->log, NAME " %p: set format on port %d:%d",
|
spa_log_debug(this->log, NAME " %p: set format on port %d:%d",
|
||||||
this, direction, port_id);
|
this, direction, port_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -588,7 +588,7 @@ impl_node_port_use_buffers(struct spa_node *node,
|
||||||
|
|
||||||
port = GET_PORT(this, direction, port_id);
|
port = GET_PORT(this, direction, port_id);
|
||||||
|
|
||||||
spa_log_info(this->log, NAME " %p: use buffers %d on port %d:%d",
|
spa_log_debug(this->log, NAME " %p: use buffers %d on port %d:%d",
|
||||||
this, n_buffers, direction, port_id);
|
this, n_buffers, direction, port_id);
|
||||||
|
|
||||||
spa_return_val_if_fail(port->have_format, -EIO);
|
spa_return_val_if_fail(port->have_format, -EIO);
|
||||||
|
|
|
||||||
|
|
@ -489,9 +489,10 @@ static int recalc_quantum(struct pw_node *driver)
|
||||||
if (n->quantum_size > 0 && n->quantum_size < quantum)
|
if (n->quantum_size > 0 && n->quantum_size < quantum)
|
||||||
quantum = n->quantum_size;
|
quantum = n->quantum_size;
|
||||||
}
|
}
|
||||||
if (driver->rt.position) {
|
quantum = SPA_MAX(quantum, MIN_QUANTUM);
|
||||||
driver->rt.position->size = SPA_MAX(quantum, MIN_QUANTUM);
|
if (driver->rt.position && quantum != driver->rt.position->size) {
|
||||||
pw_log_info("node %p: driver quantum %d", driver, driver->rt.position->size);
|
driver->rt.position->size = quantum;
|
||||||
|
pw_log_info("node %p: driver quantum %d", driver, quantum);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue