From bb64cb1f0cf94624e8c4d1243c5c327b15792e1e Mon Sep 17 00:00:00 2001 From: theodab Date: Wed, 6 Dec 2023 23:44:05 -0800 Subject: [PATCH] fix(DASH): Check if periodCombiner_ exists before configuring (#5998) --- lib/dash/dash_parser.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/dash/dash_parser.js b/lib/dash/dash_parser.js index 15c22993dd..1acdcd4fdf 100644 --- a/lib/dash/dash_parser.js +++ b/lib/dash/dash_parser.js @@ -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()); + } } /**