Fix repair stream ID reporting for RTX pairing. (#4369)

If RTX stream got a packet before primary stream, the pairing was not
getting set up properly.
This commit is contained in:
Raja Subramanian
2026-03-17 15:06:57 +05:30
committed by GitHub
parent cdfaacfca3
commit 8f984c770a
+5 -1
View File
@@ -92,7 +92,7 @@ func (f *RTXInfoExtractorFactory) SetStreamInfo(ssrc uint32, mid, rid, rsid stri
if info.mid == mid && info.rsid == rid { if info.mid == mid && info.rsid == rid {
repairSsrc = repair repairSsrc = repair
baseSsrc = ssrc baseSsrc = ssrc
repairSid = info.rid repairSid = rid
delete(f.streams, repair) delete(f.streams, repair)
break break
} }
@@ -115,6 +115,8 @@ func (f *RTXInfoExtractorFactory) SetStreamInfo(ssrc uint32, mid, rid, rsid stri
} }
} }
// ------------------------------------------
type RTXInfoExtractor struct { type RTXInfoExtractor struct {
interceptor.NoOp interceptor.NoOp
@@ -143,6 +145,8 @@ func (u *RTXInfoExtractor) BindRemoteStream(info *interceptor.StreamInfo, reader
} }
} }
// ------------------------------------------
type rtxInfoReader struct { type rtxInfoReader struct {
tryTimes int tryTimes int
reader interceptor.RTPReader reader interceptor.RTPReader