From 1ecf1158e3f9e6c7bc08bcb3df45f72cdaafc4b8 Mon Sep 17 00:00:00 2001 From: mwaltzanduril <153141504+mwaltzanduril@users.noreply.github.com> Date: Fri, 23 Aug 2024 01:04:51 -0700 Subject: [PATCH] fix: Resolve issue where live dash manifests without audio would hang (#1524) --- src/dash-playlist-loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dash-playlist-loader.js b/src/dash-playlist-loader.js index 6d988690a..623a8178c 100644 --- a/src/dash-playlist-loader.js +++ b/src/dash-playlist-loader.js @@ -145,7 +145,7 @@ export const parseMainXml = ({ */ const removeOldMediaGroupLabels = (update, newMain) => { forEachMediaGroup(update, (properties, type, group, label) => { - if (!(label in newMain.mediaGroups[type][group])) { + if (!newMain.mediaGroups[type][group] || !(label in newMain.mediaGroups[type][group])) { delete update.mediaGroups[type][group][label]; } });