Use the optimal allocation function for opportunistic allocation. (#4030)

* Use the optimal allocation function for opportunistic allocation.

Allocation functions set the `lastAllocation` state also.
This might have been causing an e2e failure with v1 client on migration.

* annotate args
This commit is contained in:
Raja Subramanian
2025-10-26 00:27:41 +05:30
committed by GitHub
parent a2ce73e0d0
commit 81fbd3551a
3 changed files with 38 additions and 25 deletions
+2 -1
View File
@@ -413,7 +413,8 @@ func NewDownTrack(params DownTrackParams) (*DownTrack, error) {
d.forwarder = NewForwarder(
d.kind,
d.params.Logger,
false,
false, // skipReferenceTS
false, // disableOpportunisticAllocation
d.rtpStats,
)