Suppress error log of setPrefferedCodec for simulcast codec track (#1682)
This commit is contained in:
@@ -190,6 +190,7 @@ func (t *MediaTrack) SetPendingCodecSid(codecs []*livekit.SimulcastCodec) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
t.params.TrackInfo = ti
|
t.params.TrackInfo = ti
|
||||||
|
t.MediaTrackReceiver.UpdateTrackInfo(ti)
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddReceiver adds a new RTP receiver to the track, returns true when receiver represents a new codec
|
// AddReceiver adds a new RTP receiver to the track, returns true when receiver represents a new codec
|
||||||
|
|||||||
@@ -112,8 +112,15 @@ func (p *ParticipantImpl) setCodecPreferencesVideoForPublisher(offer webrtc.Sess
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var info *livekit.TrackInfo
|
||||||
p.pendingTracksLock.RLock()
|
p.pendingTracksLock.RLock()
|
||||||
_, info := p.getPendingTrack(streamID, livekit.TrackType_VIDEO)
|
mt := p.getPublishedTrackBySdpCid(streamID)
|
||||||
|
if mt != nil {
|
||||||
|
info = mt.ToProto()
|
||||||
|
} else {
|
||||||
|
_, info = p.getPendingTrack(streamID, livekit.TrackType_VIDEO)
|
||||||
|
}
|
||||||
|
|
||||||
if info == nil {
|
if info == nil {
|
||||||
p.pendingTracksLock.RUnlock()
|
p.pendingTracksLock.RUnlock()
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user