Skip to content

Commit

Permalink
Revert "fix: dash group changes should not stop playlist loader"
Browse files Browse the repository at this point in the history
This reverts commit 6967321.
  • Loading branch information
ziddey committed Jun 12, 2021
1 parent 1adde04 commit 11a0115
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/media-groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ export const startLoaders = (playlistLoader, mediaType) => {
*/
export const onGroupChanged = (type, settings) => () => {
const {
sourceType,
segmentLoaders: {
[type]: segmentLoader,
main: mainSegmentLoader
Expand All @@ -93,11 +92,6 @@ export const onGroupChanged = (type, settings) => () => {
mediaType.lastGroup_ = activeGroup;
mediaType.lastTrack_ = activeTrack;

if (sourceType === 'dash') {
// only one playlist loader for dash. do not stop.
return;
}

stopLoaders(segmentLoader, mediaType);

if (!activeGroup || activeGroup.isMasterPlaylist) {
Expand Down

0 comments on commit 11a0115

Please sign in to comment.