From 523690098c6c93510159cf99e8f23b7cad6c46c3 Mon Sep 17 00:00:00 2001 From: kaoru Date: Wed, 3 Dec 2025 10:52:54 -0500 Subject: [PATCH] fix: windows build --- Cargo.toml | 2 +- src/capturer/engine/win/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8c84b68..39c8268 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ thiserror = "2.0.12" [target.'cfg(target_os = "windows")'.dependencies] windows-capture = "1.5.0" -windows = { version = "0.58", features = [ +windows = { version = "0.58.0", features = [ "Win32_Foundation", "Win32_Graphics_Gdi", "Win32_UI_HiDpi", diff --git a/src/capturer/engine/win/mod.rs b/src/capturer/engine/win/mod.rs index 227aa32..3093541 100644 --- a/src/capturer/engine/win/mod.rs +++ b/src/capturer/engine/win/mod.rs @@ -76,7 +76,7 @@ impl GraphicsCaptureApiHandler for Capturer { frame: &mut WCFrame, _: InternalCaptureControl, ) -> Result<(), Self::Error> { - let elapsed = frame.timespan().Duration - self.start_time.0; + let elapsed = frame.timestamp().Duration - self.start_time.0; let display_time = self .start_time .1