From 42196e9f649d38cbe6cf700e453090e459d955b4 Mon Sep 17 00:00:00 2001 From: Vanilagy <1696106+Vanilagy@users.noreply.github.com> Date: Fri, 28 Aug 2026 15:11:31 +0200 Subject: [PATCH] Add proper non-null check --- src/media-sink.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/media-sink.ts b/src/media-sink.ts index 6fd28b8..0edc4dd 100644 --- a/src/media-sink.ts +++ b/src/media-sink.ts @@ -2095,7 +2095,7 @@ class AudioDecoderWrapper extends DecoderWrapper { const sampleHandler = (sample: AudioSample) => { let sampleTimestamp = sample.timestamp; - if (this.expectedFirstTimestamp && this.currentTimestamp === null) { + if (this.expectedFirstTimestamp !== null && this.currentTimestamp === null) { this.timestampOffset = this.expectedFirstTimestamp - sampleTimestamp; ; }