Skip to content

Commit

Permalink
Remove outdated safety comment in RegisterCodec
Browse files Browse the repository at this point in the history
The removed comment predates the introduction of locks in the
RegisterCodec method.
  • Loading branch information
JoeTurki committed Jan 22, 2025
1 parent feeeebf commit 47c65c8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mediaengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 47c65c8

Please sign in to comment.