stream: request quantum when no rate_match

If we have nothing to request, ask for a quantum worth of data.
This commit is contained in:
Wim Taymans 2022-03-29 12:46:39 +02:00
parent 5fc1ab90f7
commit 1f2c4cc8dc

View file

@ -562,7 +562,7 @@ static inline uint32_t update_requested(struct stream *impl)
buffer->this.requested = r->size; buffer->this.requested = r->size;
res = r->size > 0 ? 1 : 0; res = r->size > 0 ? 1 : 0;
} else { } else {
buffer->this.requested = 0; buffer->this.requested = impl->quantum;
res = 1; res = 1;
} }
pw_log_trace_fp("%p: update buffer:%u size:%u", impl, id, r->size); pw_log_trace_fp("%p: update buffer:%u size:%u", impl, id, r->size);