From 47c65c81e37ce49e720e48bc71dafe7ea8bc9574 Mon Sep 17 00:00:00 2001 From: Joe Turki Date: Wed, 22 Jan 2025 10:31:10 -0600 Subject: [PATCH] Remove outdated safety comment in RegisterCodec The removed comment predates the introduction of locks in the RegisterCodec method. --- mediaengine.go | 1 - 1 file changed, 1 deletion(-) diff --git a/mediaengine.go b/mediaengine.go index 920f5c2e..885da9e2 100644 --- a/mediaengine.go +++ b/mediaengine.go @@ -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()