Prevent bind lock deadlock on muted. (#3504)

Need to re-visit the bind lock scope and maybe make the codec/mime
atomic and access them without bind lock. But, doing a whack-a-mole a
bit first to move things forward. Will look at making them atomics.
This commit is contained in:
Raja Subramanian
2025-03-09 11:21:09 +05:30
committed by GitHub
parent 48063df5b8
commit 7f6afe05ad
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -183,6 +183,8 @@ func (t *MediaTrackSubscriptions) AddSubscriber(sub types.LocalParticipant, wr *
}()
}
}
subTrack.SetPublisherMuted(t.params.MediaTrack.IsMuted())
})
downTrack.OnBinding(func(err error) {
if err != nil {
@@ -203,8 +205,6 @@ func (t *MediaTrackSubscriptions) AddSubscriber(sub types.LocalParticipant, wr *
}
go subTrack.Bound(nil)
subTrack.SetPublisherMuted(t.params.MediaTrack.IsMuted())
})
downTrack.OnStatsUpdate(func(_ *sfu.DownTrack, stat *livekit.AnalyticsStat) {