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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user