Reset DD tracker layers when muted. (#2920)
* Reset DD tracker layers when muted. @cnderrauber, I think this is okay to do, but please let me know if there are gotchas in there. * copy * more compact form
This commit is contained in:
@@ -545,9 +545,7 @@ func (s *StreamAllocator) maybePostEventAllocateTrack(downTrack *sfu.DownTrack)
|
||||
shouldPost := false
|
||||
s.videoTracksMu.Lock()
|
||||
if track := s.videoTracks[livekit.TrackID(downTrack.ID())]; track != nil {
|
||||
if track.SetDirty(true) {
|
||||
shouldPost = true
|
||||
}
|
||||
shouldPost = track.SetDirty(true)
|
||||
}
|
||||
s.videoTracksMu.Unlock()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user