Fix missed unlock (#3861)
* Fix missed unlock * select alternative codec if no codec specified
This commit is contained in:
@@ -2747,7 +2747,6 @@ func (p *ParticipantImpl) addPendingTrackLocked(req *livekit.AddTrackRequest) *l
|
||||
"track", logger.Proto(ti),
|
||||
"addTrackRequest", logger.Proto(req),
|
||||
)
|
||||
continue
|
||||
}
|
||||
|
||||
mimeType := codec.Codec
|
||||
|
||||
@@ -96,6 +96,7 @@ func (p *ParticipantImpl) populateSdpCid(parsedOffer *sdp.SessionDescription) ([
|
||||
}
|
||||
|
||||
if len(info.Codecs) == 0 {
|
||||
p.pendingTracksLock.Unlock()
|
||||
p.pubLogger.Warnw(
|
||||
"track without codecs", nil,
|
||||
"trackID", info.Sid,
|
||||
|
||||
Reference in New Issue
Block a user