From 8efb5818f21dfff6d7215be6397f0ba24de17a77 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Tue, 9 Jun 2026 15:03:24 -0700 Subject: [PATCH] fix(web-codecs): VideoFrame::timestamp returns f64 in web-sys 0.3.100 web-sys 0.3.100 changed `VideoFrame::timestamp()` from `Option` to `f64`, so the `.unwrap()` no longer compiles. Drop it. Cargo.lock is gitignored, so CI resolves web-sys fresh to the latest and this breaks every PR until updated (same as the earlier 0.3.91 bump). Co-Authored-By: Claude Opus 4.8 (1M context) --- web-codecs/src/video/frame.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-codecs/src/video/frame.rs b/web-codecs/src/video/frame.rs index 7a39bed..6d60b68 100644 --- a/web-codecs/src/video/frame.rs +++ b/web-codecs/src/video/frame.rs @@ -14,7 +14,7 @@ pub struct VideoFrame(web_sys::VideoFrame); impl VideoFrame { pub fn timestamp(&self) -> Timestamp { - Timestamp::from_micros(self.0.timestamp().unwrap() as _) + Timestamp::from_micros(self.0.timestamp() as _) } pub fn duration(&self) -> Option {