Simplifying (hopefully) sfu.DownTrack (#213)

* Simplifying (hopefully) sfu.DownTrack

* Remove unnecessary check as pdding only packets are dropped before that check

* Temporal filtering max layer

* - Split out forwarder bits into a separate structure
- Address comments from Jie and David

* Remove debug and unneeded stuff

* Fix test

* Remove unneeded default initialization
This commit is contained in:
Raja Subramanian
2021-11-28 09:15:36 +05:30
committed by GitHub
parent 092789a08f
commit e996c185ce
5 changed files with 845 additions and 834 deletions
+4 -2
View File
@@ -1225,11 +1225,13 @@ type Track struct {
}
func newTrack(downTrack *DownTrack, peerID string) *Track {
maxSpatialLayer, maxTemporalLayer := downTrack.MaxLayers()
return &Track{
downTrack: downTrack,
peerID: peerID,
maxSpatialLayer: downTrack.MaxSpatialLayer(),
maxTemporalLayer: downTrack.MaxTemporalLayer(),
maxSpatialLayer: maxSpatialLayer,
maxTemporalLayer: maxTemporalLayer,
}
}