mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-17 16:26:39 +03:00
44bfce73fd
When reading through player I saw we did something like: let variants = period.variants; ... shaka.util.StreamUtils.applyRestrictions(period, ...); ... doSomething(variants); This causes some confusion as it was not clear if |variants| would still be valid to use (i.e. could applyRestrictions) change the reference in period like we do in some other filter functions. So to help make it clear that it doesn't, I have changed applyRestrictions to accept a variant array rather than the period. Change-Id: I6dc080a1b1e563e5dd2789bd00fb0cfeb7de41de