Skip to content

Commit

Permalink
Fix sender nil on negotiation check step 5.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
OrlandoCo authored and tarrencev committed Oct 20, 2020
1 parent 7fc6f54 commit be1723b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peerconnection.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ func (pc *PeerConnection) checkNegotiationNeeded() bool { //nolint:gocognit
// Step 5.3.1
if t.Direction() == RTPTransceiverDirectionSendrecv || t.Direction() == RTPTransceiverDirectionSendonly {
descMsid, okMsid := m.Attribute(sdp.AttrKeyMsid)
if !okMsid || descMsid != t.Sender().Track().Msid() {
if !okMsid || (t.Sender() != nil && descMsid != t.Sender().Track().Msid()) {
return true
}
}
Expand Down

0 comments on commit be1723b

Please sign in to comment.