mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue