Skip to content

Commit

Permalink
fix(DASH): Check if periodCombiner_ exists before configuring (#5998)
Browse files Browse the repository at this point in the history
  • Loading branch information
theodab committed Dec 7, 2023
1 parent 1d55dbb commit bb64cb1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/dash/dash_parser.js
Expand Up @@ -136,9 +136,11 @@ shaka.dash.DashParser = class {
this.contentSteeringManager_.configure(this.config_);
}

this.periodCombiner_.setAllowMultiTypeVariants(
this.config_.dash.multiTypeVariantsAllowed &&
shaka.media.Capabilities.isChangeTypeSupported());
if (this.periodCombiner_) {
this.periodCombiner_.setAllowMultiTypeVariants(
this.config_.dash.multiTypeVariantsAllowed &&
shaka.media.Capabilities.isChangeTypeSupported());
}
}

/**
Expand Down

0 comments on commit bb64cb1

Please sign in to comment.