mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
alsa: improve clock slaving for source
This commit is contained in:
parent
f8513029a1
commit
d8f39a7c02
3 changed files with 26 additions and 21 deletions
|
|
@ -648,16 +648,16 @@ static int impl_node_process(struct spa_node *node)
|
|||
io->buffer_id = SPA_ID_INVALID;
|
||||
}
|
||||
|
||||
if (spa_list_is_empty(&this->ready))
|
||||
if (spa_list_is_empty(&this->ready) && this->slaved)
|
||||
spa_alsa_read(this, 0);
|
||||
|
||||
if (spa_list_is_empty(&this->ready))
|
||||
if (spa_list_is_empty(&this->ready) || !this->slaved)
|
||||
return SPA_STATUS_OK;
|
||||
|
||||
b = spa_list_first(&this->ready, struct buffer, link);
|
||||
spa_list_remove(&b->link);
|
||||
|
||||
spa_log_trace_fp(this->log, NAME " %p: dequeue buffer %d", node, b->id);
|
||||
spa_log_trace_fp(this->log, NAME " %p: dequeue buffer %d", this, b->id);
|
||||
|
||||
io->buffer_id = b->id;
|
||||
io->status = SPA_STATUS_HAVE_BUFFER;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue