Do not restart receiver on codec change mid-session. (#4225)
* Do not restart receiver on codec change mid-session. This is not supported and was an erroneous change during the receiver_base/buffer_base + RTP stream restart consolidation. Also make the codec munger creation more resilient. * fix test
This commit is contained in:
@@ -964,8 +964,6 @@ func (b *BufferBase) handleCodecChange(newPT uint8) {
|
||||
b.rtxPayloadType = rtxPt
|
||||
b.mime = mime.NormalizeMimeType(newCodec.MimeType)
|
||||
|
||||
b.restartStreamLocked("codec-change", true)
|
||||
|
||||
if f := b.onCodecChange; f != nil {
|
||||
go f(newCodec)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user