Skip to content

Commit

Permalink
fix(ABR): Fix restrictToElementSize running while abr disabled (#7153)
Browse files Browse the repository at this point in the history
Fixes #7151
  • Loading branch information
PikachuEXE authored and avelad committed Aug 19, 2024
1 parent e62c0b2 commit 4f369e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ Pavel Zablockij <[email protected]>
Percy Tse <[email protected]>
Peter Nycander <[email protected]>
Philo Inc. <*@philo.com>
PikachuEXE <[email protected]>
Prakash <[email protected]>
Robert Colantuoni <[email protected]>
Robert Galluccio <[email protected]>
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ Paul Jordaan <[email protected]>
Pavel Zablockij <[email protected]>
Percy Tse <[email protected]>
Peter Nycander <[email protected]>
PikachuEXE <[email protected]>
Prakash Duggaraju <[email protected]>
Robert Colantuoni <[email protected]>
Robert Galluccio <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion lib/abr/simple_abr_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ shaka.abr.SimpleAbrManager = class {

/** @private {shaka.util.Timer} */
this.resizeObserverTimer_ = new shaka.util.Timer(() => {
if (this.config_.restrictToElementSize) {
if (this.enabled_ && this.config_.restrictToElementSize) {
const chosenVariant = this.chooseVariant();
if (chosenVariant) {
this.switch_(chosenVariant, this.config_.clearBufferSwitch,
Expand Down

0 comments on commit 4f369e0

Please sign in to comment.