mirror of
https://github.com/pion/webrtc.git
synced 2025-12-24 11:51:03 +08:00
Update CI configs to v0.4.7
Update lint scripts and CI configs.
This commit is contained in:
@@ -46,7 +46,7 @@ func (t *RTPTransceiver) Receiver() *RTPReceiver {
|
||||
// setMid sets the RTPTransceiver's mid. If it was already set, will return an error.
|
||||
func (t *RTPTransceiver) setMid(mid string) error {
|
||||
if currentMid := t.Mid(); currentMid != "" {
|
||||
return fmt.Errorf("cannot change transceiver mid from: %s to %s", currentMid, mid)
|
||||
return fmt.Errorf("%w: %s to %s", errRTPTransceiverCannotChangeMid, currentMid, mid)
|
||||
}
|
||||
t.mid.Store(mid)
|
||||
return nil
|
||||
@@ -111,7 +111,7 @@ func (t *RTPTransceiver) setSendingTrack(track *Track) error {
|
||||
case track == nil && t.Direction() == RTPTransceiverDirectionSendonly:
|
||||
t.setDirection(RTPTransceiverDirectionInactive)
|
||||
default:
|
||||
return fmt.Errorf("invalid state change in RTPTransceiver.setSending")
|
||||
return errRTPTransceiverSetSendingInvalidState
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -138,8 +138,9 @@ func satisfyTypeAndDirection(remoteKind RTPCodecType, remoteDirection RTPTransce
|
||||
return []RTPTransceiverDirection{RTPTransceiverDirectionRecvonly, RTPTransceiverDirectionSendrecv}
|
||||
case RTPTransceiverDirectionRecvonly:
|
||||
return []RTPTransceiverDirection{RTPTransceiverDirectionSendonly, RTPTransceiverDirectionSendrecv}
|
||||
default:
|
||||
return []RTPTransceiverDirection{}
|
||||
}
|
||||
return []RTPTransceiverDirection{}
|
||||
}
|
||||
|
||||
for _, possibleDirection := range getPreferredDirections() {
|
||||
|
||||
Reference in New Issue
Block a user