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)