Skip to content

Commit 1ecf115

Browse files
authored
fix: Resolve issue where live dash manifests without audio would hang (#1524)
1 parent 7083c5e commit 1ecf115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dash-playlist-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export const parseMainXml = ({
145145
*/
146146
const removeOldMediaGroupLabels = (update, newMain) => {
147147
forEachMediaGroup(update, (properties, type, group, label) => {
148-
if (!(label in newMain.mediaGroups[type][group])) {
148+
if (!newMain.mediaGroups[type][group] || !(label in newMain.mediaGroups[type][group])) {
149149
delete update.mediaGroups[type][group][label];
150150
}
151151
});

0 commit comments

Comments
 (0)