Skip to content

Commit 771cb4e

Browse files
authored
Update capture function return type for PixelProvider (rustdesk#14747)
1 parent 2f694c0 commit 771cb4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/scrap/src/wayland/pipewire.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ impl PipeWireRecorder {
346346
}
347347

348348
impl Recorder for PipeWireRecorder {
349-
fn capture(&mut self, timeout_ms: u64) -> Result<PixelProvider, Box<dyn Error>> {
349+
fn capture(&mut self, timeout_ms: u64) -> Result<PixelProvider<'_>, Box<dyn Error>> {
350350
if let Some(sample) = self
351351
.appsink
352352
.try_pull_sample(gst::ClockTime::from_mseconds(timeout_ms))

0 commit comments

Comments
 (0)