mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
node: process -> ready
Change the process callback to ready to avoid confusion with the process method and it also describes better what happened.
This commit is contained in:
parent
8ae5424359
commit
3c78036a97
13 changed files with 28 additions and 27 deletions
|
|
@ -825,7 +825,7 @@ push_frames(struct state *state,
|
|||
spa_list_append(&state->ready, &b->link);
|
||||
}
|
||||
|
||||
state->callbacks->process(state->callbacks_data, SPA_STATUS_HAVE_BUFFER);
|
||||
state->callbacks->ready(state->callbacks_data, SPA_STATUS_HAVE_BUFFER);
|
||||
}
|
||||
return total_frames;
|
||||
}
|
||||
|
|
@ -869,7 +869,7 @@ static int handle_play(struct state *state)
|
|||
state->range->min_size = state->threshold * state->frame_size;
|
||||
state->range->max_size = state->threshold * state->frame_size;
|
||||
}
|
||||
state->callbacks->process(state->callbacks_data, SPA_STATUS_NEED_BUFFER);
|
||||
state->callbacks->ready(state->callbacks_data, SPA_STATUS_NEED_BUFFER);
|
||||
}
|
||||
else {
|
||||
spa_alsa_write(state, 0, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue