Remove outdated safety comment in RegisterCodec

The removed comment predates the introduction of locks in the
RegisterCodec method.
This commit is contained in:
Joe Turki
2025-01-22 10:31:10 -06:00
parent feeeebf251
commit 47c65c81e3

View File

@@ -256,7 +256,6 @@ func (m *MediaEngine) addCodec(codecs []RTPCodecParameters, codec RTPCodecParame
// RegisterCodec adds codec to the MediaEngine
// 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 {
m.mu.Lock()
defer m.mu.Unlock()