From c966cf36e71be038d9082b766dc1224a3217e024 Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Fri, 23 Aug 2024 18:22:53 +0000 Subject: [PATCH] web/codecs: fix libav load not working --- web/src/lib/libav/webcodecs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/lib/libav/webcodecs.ts b/web/src/lib/libav/webcodecs.ts index 91fffecb..b8d9c60b 100644 --- a/web/src/lib/libav/webcodecs.ts +++ b/web/src/lib/libav/webcodecs.ts @@ -7,7 +7,7 @@ const has = (obj: T, key: string) => { export default class WebCodecsWrapper { #libav: Promise; - #ready: Promise | undefined; + #ready?: Promise; constructor(libav: Promise) { this.#libav = libav; @@ -17,7 +17,7 @@ export default class WebCodecsWrapper { if (typeof this.#ready === 'undefined') { this.#ready = LibAVPolyfill.load({ polyfill: false, - LibAV: await this.#libav + LibAV: { LibAV: () => this.#libav } }); }