alsa: we can always signal that there is a buffer

This commit is contained in:
Wim Taymans 2017-10-22 16:08:30 +02:00
parent a3b614fff6
commit 4aaa2cbc6b
2 changed files with 8 additions and 7 deletions

View file

@ -317,8 +317,6 @@ static inline void try_pull(struct state *state, snd_pcm_uframes_t frames, bool
if (spa_list_is_empty(&state->ready) && do_pull) {
spa_log_trace(state->log, "alsa-util %p: %d", state, io->status);
if (io->status != SPA_RESULT_OK)
return;
io->status = SPA_RESULT_NEED_BUFFER;
io->range.offset = state->sample_count * state->frame_size;
io->range.min_size = state->threshold * state->frame_size;