mirror of
https://github.com/livekit/livekit.git
synced 2026-07-20 04:50:58 +00:00
Fix codec match in downtrack (#3420)
This commit is contained in:
@@ -659,7 +659,7 @@ func (d *DownTrack) handleUpstreamCodecChange(mimeType string) {
|
||||
|
||||
var codec webrtc.RTPCodecParameters
|
||||
for _, c := range d.upstreamCodecs {
|
||||
if !mime.IsMimeTypeStringEqual(d.codec.MimeType, mimeType) {
|
||||
if !mime.IsMimeTypeStringEqual(c.MimeType, mimeType) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user