mirror of
https://github.com/pion/webrtc.git
synced 2025-09-27 03:25:58 +08:00
Remove outdated safety comment in RegisterCodec
The removed comment predates the introduction of locks in the RegisterCodec method.
This commit is contained in:
@@ -256,7 +256,6 @@ func (m *MediaEngine) addCodec(codecs []RTPCodecParameters, codec RTPCodecParame
|
|||||||
|
|
||||||
// RegisterCodec adds codec to the MediaEngine
|
// RegisterCodec adds codec to the MediaEngine
|
||||||
// These are the list of codecs supported by this PeerConnection.
|
// These are the list of codecs supported by this PeerConnection.
|
||||||
// RegisterCodec is not safe for concurrent use.
|
|
||||||
func (m *MediaEngine) RegisterCodec(codec RTPCodecParameters, typ RTPCodecType) error {
|
func (m *MediaEngine) RegisterCodec(codec RTPCodecParameters, typ RTPCodecType) error {
|
||||||
m.mu.Lock()
|
m.mu.Lock()
|
||||||
defer m.mu.Unlock()
|
defer m.mu.Unlock()
|
||||||
|
Reference in New Issue
Block a user