Skip to content

Commit

Permalink
fix: Avoid filter manifest when the DRM is not initialized (#6737)
Browse files Browse the repository at this point in the history
Regression of
9071002

Fixes #6710
  • Loading branch information
avelad authored Jun 3, 2024
1 parent 600c871 commit 80139b0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/media/preload_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,9 +553,7 @@ shaka.media.PreloadManager = class extends shaka.util.FakeEventTarget {

const tracksChangedInitial = this.manifestFilterer_.applyRestrictions(
this.manifest_);
const tracksChangedBefore = await this.manifestFilterer_.filterManifest(
this.manifest_);
if (tracksChangedInitial || tracksChangedBefore) {
if (tracksChangedInitial) {
const event = this.makeEvent_(
shaka.util.FakeEvent.EventName.TracksChanged);
await Promise.resolve();
Expand Down

0 comments on commit 80139b0

Please sign in to comment.