mirror of
https://github.com/livekit/livekit.git
synced 2026-11-23 02:29:22 +00:00
Keep the RTX repaired history, its lookup and the publisher sequence number extension in BufferBase, so every buffer built on it, such as the relay, can exclude RTX repaired packets from FlexFEC recovery the same way. The history is now cleared with the rest of the sequence number state when the stream restarts. Buffer only marks repaired packets from writeRTX. Packets recovered by FEC also enter with isRTX set, but they are exact reconstructions and stay usable, so marking is explicit rather than tied to that flag.