From 80139b0ba714fb233b5631b0e75f3432eec0ff39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Velad=20Galv=C3=A1n?= Date: Mon, 3 Jun 2024 12:16:34 +0200 Subject: [PATCH] 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 --- lib/media/preload_manager.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/media/preload_manager.js b/lib/media/preload_manager.js index 42996d4ea6..6b6b529657 100644 --- a/lib/media/preload_manager.js +++ b/lib/media/preload_manager.js @@ -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();