Consolidate TrackInfo. (#2331)

* Consolidate TrackInfo.

TrackInfo was spread across a bit. Consolidating it.

* TODO comments

* test

* update TrackInfo on SSRC change

* further consolidation

* log mimes only

* update receivers on SSRC set

* clone proto on return

* feedback: break loop on mime match

* prevent data race
This commit is contained in:
Raja Subramanian
2023-12-21 09:56:54 +05:30
committed by GitHub
parent be526cc43e
commit faff67162b
12 changed files with 325 additions and 407 deletions
+1 -1
View File
@@ -242,7 +242,7 @@ func (p *ParticipantImpl) configurePublisherAnswer(answer webrtc.SessionDescript
_, ti, _ = p.getPendingTrack(streamID, livekit.TrackType_AUDIO)
p.pendingTracksLock.RUnlock()
} else {
ti = track.TrackInfo(false)
ti = track.ToProto()
}
break
}