Skip to content

Commit 1adde04

Browse files
committed
Revert "only prevent stopLoaders for dash (fix for recent updates)"
This reverts commit b848006.
1 parent 90019fd commit 1adde04

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/media-groups.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,13 @@ export const onGroupChanged = (type, settings) => () => {
9393
mediaType.lastGroup_ = activeGroup;
9494
mediaType.lastTrack_ = activeTrack;
9595

96-
if (sourceType !== 'dash') {
97-
// only one playlist for dash. do not stop.
98-
stopLoaders(segmentLoader, mediaType);
96+
if (sourceType === 'dash') {
97+
// only one playlist loader for dash. do not stop.
98+
return;
9999
}
100100

101+
stopLoaders(segmentLoader, mediaType);
102+
101103
if (!activeGroup || activeGroup.isMasterPlaylist) {
102104
// there is no group active or active group is a main playlist and won't change
103105
return;

0 commit comments

Comments
 (0)