pulse-server: calculate missing bytes differently

Based on patch from Barnabás Pőcze <pobrn@protonmail.com>

Instead of trying to keep track of the missing bytes ourselves, use the
simple tlength - avail - requested formula to request more bytes from
the client.

Fixes #1981
This commit is contained in:
Wim Taymans 2022-01-10 12:05:29 +01:00
parent 7b1c5cd6dd
commit 982758ffed
4 changed files with 11 additions and 30 deletions

View file

@ -83,7 +83,6 @@ struct stream {
int64_t delay;
uint32_t last_quantum;
int64_t missing;
int64_t requested;
struct sample_spec ss;