Skip to content

Commit 747682c

Browse files
authored
Fixed not being able to unsubscribe events (#556)
1 parent 3b63973 commit 747682c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ffmpeg/src/classes.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ export class FFmpeg {
148148
callback: LogEventCallback | ProgressEventCallback
149149
) {
150150
if (event === "log") {
151-
this.#logEventCallbacks.filter((f) => f !== callback);
151+
this.#logEventCallbacks = this.#logEventCallbacks.filter((f) => f !== callback);
152152
} else if (event === "progress") {
153-
this.#progressEventCallbacks.filter((f) => f !== callback);
153+
this.#progressEventCallbacks = this.#progressEventCallbacks.filter((f) => f !== callback);
154154
}
155155
}
156156

0 commit comments

Comments
 (0)