24 lines
862 B
Diff
24 lines
862 B
Diff
From e8703de1c76f50553cedb7a1601e5b808a227604 Mon Sep 17 00:00:00 2001
|
|
From: "Gabor Kecskemeti (sh)" <gabor@simple-help.com>
|
|
Date: Thu, 11 Nov 2021 11:41:09 +0000
|
|
Subject: A possible fix for issue #27
|
|
|
|
---
|
|
pipewire/src/loop_.rs | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/helvum-0.3.4/pipewire/src/loop_.rs b/helvum-0.3.4/pipewire/src/loop_.rs
|
|
index 3e0d9bd..353025f 100644
|
|
--- a/helvum-0.3.4/pipewire/src/loop_.rs
|
|
+++ b/helvum-0.3.4/pipewire/src/loop_.rs
|
|
@@ -411,7 +411,7 @@ where
|
|
fn duration_to_timespec(duration: Duration) -> spa_sys::timespec {
|
|
spa_sys::timespec {
|
|
tv_sec: duration.as_secs().try_into().expect("Duration too long"),
|
|
- tv_nsec: duration.subsec_nanos().into(),
|
|
+ tv_nsec: duration.subsec_nanos().try_into().unwrap(),
|
|
}
|
|
}
|
|
|
|
--
|
|
|