module-rtp-source: increase overrun watermark a little

On Wifi we can get big bursts.
This commit is contained in:
Wim Taymans 2023-01-25 17:22:52 +01:00
parent 0fd44bc9d0
commit 6e99ccb73e

View file

@ -283,10 +283,10 @@ static void stream_process(void *data)
}
} else {
float error, corr;
if (avail > (int32_t)SPA_MIN(target_buffer * 3, BUFFER_SIZE)) {
if (avail > (int32_t)SPA_MIN(target_buffer * 8, BUFFER_SIZE)) {
pw_log_warn("overrun %u > %u", avail, target_buffer * 8);
index += avail - target_buffer;
avail = target_buffer;
pw_log_warn("overrun %u > %u", avail, target_buffer * 3);
} else {
if (sess->first) {
if ((uint32_t)avail > target_buffer) {