Skip to content

Commit

Permalink
fix: Resolve issue where live dash manifests without audio would hang (
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaltza authored Aug 23, 2024
1 parent 7083c5e commit 1ecf115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dash-playlist-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
});
Expand Down

0 comments on commit 1ecf115

Please sign in to comment.