mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
small cleanups
This commit is contained in:
parent
65e00631da
commit
c61d579d99
9 changed files with 34 additions and 19 deletions
|
|
@ -601,7 +601,8 @@ static int impl_node_process(struct spa_node *node)
|
|||
spa_list_append(&this->ready, &b->link);
|
||||
SPA_FLAG_UNSET(b->flags, BUFFER_FLAG_OUT);
|
||||
|
||||
this->threshold = b->buf->datas[0].chunk->size / this->frame_size;
|
||||
this->threshold = SPA_MIN(b->buf->datas[0].chunk->size / this->frame_size,
|
||||
this->props.max_latency);
|
||||
|
||||
spa_alsa_write(this, 0);
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ int spa_alsa_close(struct state *state)
|
|||
if (!state->opened)
|
||||
return 0;
|
||||
|
||||
spa_log_info(state->log, "Device closing");
|
||||
spa_log_info(state->log, "Device '%s' closing", state->props.device);
|
||||
CHECK(snd_pcm_close(state->hndl), "close failed");
|
||||
|
||||
close(state->timerfd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue