MT#55283 initialise kernel SSRC loss tracker

The kernel tracks lost packets per SSRC through the `lost_bits` window
in the shared ssrc_stats, which was left zeroed, while userspace starts
its own window as all-received. As userspace already advances `ext_seq`
before a stream is kernelised, the kernel then counted up to 32 packets
it did receive as lost, both per SSRC and in the interface and global
packets_lost counters. Start the shared window as all-received too.

Change-Id: I3d6cd85a1b764a6bb3296daf7489091767449554
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 3b73432826)
pull/2215/head
darwvin-dev 1 month ago committed by Richard Fuchs
parent 3b9407818d
commit 9fc1340070

@ -39,6 +39,7 @@ static struct ssrc_entry *create_ssrc_entry_call(void *uptr) {
ent->ssrc_map_out = ssl_random();
atomic64_set_na(&ent->last_sample, rtpe_now);
ent->stats = bufferpool_alloc0(shm_bufferpool, sizeof(*ent->stats));
ent->stats->lost_bits = -1; // kernel tracker, so it doesn't count its first 32 packets as lost
ent->lost_bits = -1;
return &ent->h;
}

Loading…
Cancel
Save