Browse Source
fix: Resolve issue where live dash manifests without audio would hang (#1524)
pull/1537/head
mwaltzanduril
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
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]; |
|
|
|
} |
|
|
|
}); |
|
|
|