mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-05-09 15:48:09 +03:00
Update capture function return type for PixelProvider (#14747)
This commit is contained in:
@@ -346,7 +346,7 @@ impl PipeWireRecorder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Recorder for PipeWireRecorder {
|
impl Recorder for PipeWireRecorder {
|
||||||
fn capture(&mut self, timeout_ms: u64) -> Result<PixelProvider, Box<dyn Error>> {
|
fn capture(&mut self, timeout_ms: u64) -> Result<PixelProvider<'_>, Box<dyn Error>> {
|
||||||
if let Some(sample) = self
|
if let Some(sample) = self
|
||||||
.appsink
|
.appsink
|
||||||
.try_pull_sample(gst::ClockTime::from_mseconds(timeout_ms))
|
.try_pull_sample(gst::ClockTime::from_mseconds(timeout_ms))
|
||||||
|
|||||||
Reference in New Issue
Block a user