Include track priority in de-duper checks (#1388)

This commit is contained in:
Raja Subramanian
2023-02-07 11:57:29 +05:30
committed by GitHub
parent 470a6fc9f1
commit 9d32c6065d
+4 -1
View File
@@ -23,6 +23,7 @@ type subscriptionSetting struct {
width uint32
height uint32
fps uint32
priority uint32
}
func subscriptionSettingFromUpdateSubscription(us *livekit.UpdateSubscription, existing *subscriptionSetting) *subscriptionSetting {
@@ -43,6 +44,7 @@ func subscriptionSettingFromUpdateTrackSettings(uts *livekit.UpdateTrackSettings
width: uts.Width,
height: uts.Height,
fps: uts.Fps,
priority: uts.Priority,
}
}
@@ -52,7 +54,8 @@ func (s *subscriptionSetting) Equal(other *subscriptionSetting) bool {
s.quality == other.quality &&
s.width == other.width &&
s.height == other.height &&
s.fps == other.fps
s.fps == other.fps &&
s.priority == other.priority
}
// --------------------------------------------------