From d25ad973048317445e4cacffad16bd637e450c0e Mon Sep 17 00:00:00 2001 From: Rob Walch Date: Thu, 17 Oct 2024 11:25:17 -0700 Subject: [PATCH] Fix unregister listener type in audio-stream-controller.ts (#6778) Regression introduced in dev and 1.6.0-beta.1 only. Listeners are still removed on destroy with removeAllListeners. --- src/controller/audio-stream-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/audio-stream-controller.ts b/src/controller/audio-stream-controller.ts index 696e5a401f2..32a579a3bc0 100644 --- a/src/controller/audio-stream-controller.ts +++ b/src/controller/audio-stream-controller.ts @@ -118,7 +118,7 @@ class AudioStreamController hls.off(Events.BUFFER_FLUSHING, this.onBufferFlushing, this); hls.off(Events.BUFFER_FLUSHED, this.onBufferFlushed, this); hls.off(Events.INIT_PTS_FOUND, this.onInitPtsFound, this); - hls.on(Events.FRAG_LOADING, this.onFragLoading, this); + hls.off(Events.FRAG_LOADING, this.onFragLoading, this); hls.off(Events.FRAG_BUFFERED, this.onFragBuffered, this); }