improve debug and error reporting a little

This commit is contained in:
Wim Taymans 2025-03-28 16:08:57 +01:00 committed by Arun Raghavan
parent a3e94b48fa
commit 4939a957c6
3 changed files with 8 additions and 4 deletions

View file

@ -1665,8 +1665,8 @@ impl_node_port_use_buffers(void *object,
b->buf = buffers[i];
if (n_datas != port->blocks) {
spa_log_error(this->log, "%p: invalid blocks %d on buffer %d",
this, n_datas, i);
spa_log_error(this->log, "%p: invalid blocks %d on buffer %d, expected %d",
this, n_datas, i, port->blocks);
return -EINVAL;
}
if (SPA_FLAG_IS_SET(flags, SPA_NODE_BUFFERS_FLAG_ALLOC)) {