Browse Source

fix: Resolve issue where live dash manifests without audio would hang (#1524)

pull/1537/head
mwaltzanduril 11 months ago
committed by GitHub
parent
commit
1ecf1158e3
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/dash-playlist-loader.js

2
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];
}
});

Loading…
Cancel
Save