Clone TrackInfo to TrackPublishRequested event. (#3377)

This is atleast one place where analytics objects are getting mutated.
This commit is contained in:
Raja Subramanian
2025-01-29 14:10:43 +05:30
committed by GitHub
parent 1b86b485a9
commit 5aa17adc91
+1 -1
View File
@@ -2267,7 +2267,7 @@ func (p *ParticipantImpl) addPendingTrackLocked(req *livekit.AddTrackRequest) *l
}
}
p.params.Telemetry.TrackPublishRequested(context.Background(), p.ID(), p.Identity(), ti)
p.params.Telemetry.TrackPublishRequested(context.Background(), p.ID(), p.Identity(), utils.CloneProto(ti))
if p.supervisor != nil {
p.supervisor.AddPublication(livekit.TrackID(ti.Sid))
p.supervisor.SetPublicationMute(livekit.TrackID(ti.Sid), ti.Muted)