mirror of
https://github.com/pion/webrtc.git
synced 2025-10-22 14:49:34 +08:00
Fix race condition in startReceiver
startReceiver doesn't hold the lock when getting the SSRC. Use the thread safe accessor
This commit is contained in:
@@ -1181,7 +1181,7 @@ func (pc *PeerConnection) startReceiver(incoming trackDetails, receiver *RTPRece
|
||||
}
|
||||
|
||||
for _, t := range receiver.Tracks() {
|
||||
if t.ssrc == 0 {
|
||||
if t.SSRC() == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user