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:
Wim Taymans 2019-02-14 17:04:59 +01:00
parent 8ae5424359
commit 3c78036a97
13 changed files with 28 additions and 27 deletions

View file

@ -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);