Skip to content

Commit 2fa803e

Browse files
theodabavelad
authored andcommitted
fix(DASH): Check if periodCombiner_ exists before configuring (#5998)
1 parent 6739b1f commit 2fa803e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/dash/dash_parser.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,11 @@ shaka.dash.DashParser = class {
136136
this.contentSteeringManager_.configure(this.config_);
137137
}
138138

139-
this.periodCombiner_.setAllowMultiTypeVariants(
140-
this.config_.dash.multiTypeVariantsAllowed &&
141-
shaka.media.Capabilities.isChangeTypeSupported());
139+
if (this.periodCombiner_) {
140+
this.periodCombiner_.setAllowMultiTypeVariants(
141+
this.config_.dash.multiTypeVariantsAllowed &&
142+
shaka.media.Capabilities.isChangeTypeSupported());
143+
}
142144
}
143145

144146
/**

0 commit comments

Comments
 (0)