Skip to content

Commit 8695b5d

Browse files
committed
chore: remove unused timeout
1 parent ca41b12 commit 8695b5d

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

src/host/pipewire/device.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@ impl DeviceTrait for Device {
279279
sample_format,
280280
data_callback,
281281
error_callback,
282-
timeout,
283282
)
284283
else {
285284
let _ = pw_init_tx.send(false);
@@ -342,7 +341,6 @@ impl DeviceTrait for Device {
342341
sample_format,
343342
data_callback,
344343
error_callback,
345-
timeout,
346344
)
347345
else {
348346
let _ = pw_init_tx.send(false);

src/host/pipewire/stream.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
use std::{
2-
thread::JoinHandle,
3-
time::{Duration, Instant},
4-
};
1+
use std::{thread::JoinHandle, time::Instant};
52

63
use crate::{
74
traits::StreamTrait, BackendSpecificError, InputCallbackInfo, OutputCallbackInfo, SampleFormat,
@@ -185,7 +182,6 @@ pub fn connect_output<D, E>(
185182
sample_format: SampleFormat,
186183
data_callback: D,
187184
error_callback: E,
188-
_timeout: Option<Duration>,
189185
) -> Result<StreamData<D, E>, pw::Error>
190186
where
191187
D: FnMut(&mut Data, &OutputCallbackInfo) + Send + 'static,
@@ -306,7 +302,6 @@ pub fn connect_input<D, E>(
306302
sample_format: SampleFormat,
307303
data_callback: D,
308304
error_callback: E,
309-
_timeout: Option<Duration>,
310305
) -> Result<StreamData<D, E>, pw::Error>
311306
where
312307
D: FnMut(&Data, &InputCallbackInfo) + Send + 'static,

0 commit comments

Comments
 (0)