remove the rate_match io

Now that the stream provides us with a requested size, we don't need to
use the rate_match anymore.
This commit is contained in:
Wim Taymans 2022-03-29 09:18:18 +02:00
parent 5192fcb16c
commit 7e42c905a8
8 changed files with 12 additions and 104 deletions

View file

@ -1260,8 +1260,7 @@ static void stream_process(void *data)
if (stream->direction == PW_DIRECTION_OUTPUT) {
int32_t avail = spa_ringbuffer_get_read_index(&stream->ring, &index);
if (stream->rate_match)
minreq = stream->rate_match->size * stream->frame_size;
minreq = buffer->requested * stream->frame_size;
if (minreq == 0)
minreq = stream->attr.minreq;