mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: only update alsa sources when added to the data loop
This commit is contained in:
parent
b16b80601d
commit
5ae73fccdd
1 changed files with 1 additions and 1 deletions
|
|
@ -2037,7 +2037,7 @@ static int setup_matching(struct state *state)
|
|||
|
||||
static void update_sources(struct state *state, bool active)
|
||||
{
|
||||
if (state->disable_tsched) {
|
||||
if (state->disable_tsched && state->source[0].data != NULL) {
|
||||
for (int i = 0; i < state->n_fds; i++) {
|
||||
state->source[i].mask = active ? state->pfds[i].events : 0;
|
||||
spa_loop_update_source(state->data_loop, &state->source[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue