avoid race condition on downtrack.Codec (#3032)

This commit is contained in:
cnderrauber
2024-09-22 14:27:26 +08:00
committed by GitHub
parent 8428d5e62b
commit eed925fddf
2 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -693,7 +693,7 @@ func (m *SubscriptionManager) handleSubscribedTrackClose(s *trackSubscription, i
context.Background(),
m.params.Participant.ID(),
s.trackID,
subTrack.DownTrack().Codec().MimeType,
dt.Codec().MimeType,
stats,
)
}