fix: Avoid filter manifest when the DRM is not initialized (#6737)

Regression of
https://github.com/shaka-project/shaka-player/commit/90710023466dcad4d1d14a2869ae50e8da4e93ee

Fixes https://github.com/shaka-project/shaka-player/issues/6710
This commit is contained in:
Álvaro Velad Galván
2024-06-03 12:16:34 +02:00
committed by GitHub
parent 600c87158a
commit 80139b0ba7
+1 -3
View File
@@ -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();