mirror of
https://github.com/pion/webrtc.git
synced 2025-12-24 11:51:03 +08:00
Remove the "Unknown" constant
This commit replaces the Unknown constant with separate constants for each enumeration that uses it. Fixes #1293
This commit is contained in:
committed by
Sean DuBois
parent
7e598b5a63
commit
13450332a4
@@ -42,7 +42,7 @@ func newRTPTransceiver(
|
||||
t.setReceiver(receiver)
|
||||
t.setSender(sender)
|
||||
t.setDirection(direction)
|
||||
t.setCurrentDirection(RTPTransceiverDirection(Unknown))
|
||||
t.setCurrentDirection(RTPTransceiverDirectionUnknown)
|
||||
return t
|
||||
}
|
||||
|
||||
@@ -193,7 +193,7 @@ func (t *RTPTransceiver) getCurrentDirection() RTPTransceiverDirection {
|
||||
if v, ok := t.currentDirection.Load().(RTPTransceiverDirection); ok {
|
||||
return v
|
||||
}
|
||||
return RTPTransceiverDirection(Unknown)
|
||||
return RTPTransceiverDirectionUnknown
|
||||
}
|
||||
|
||||
func (t *RTPTransceiver) setSendingTrack(track TrackLocal) error {
|
||||
|
||||
Reference in New Issue
Block a user