Skip to content

Commit 6f71671

Browse files
committed
string
1 parent 9ca07fd commit 6f71671

File tree

1 file changed

+4
-2
lines changed
  • crates/recording/src/sources/screen_capture

1 file changed

+4
-2
lines changed

crates/recording/src/sources/screen_capture/windows.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ enum SourceError {
197197
#[error("CreateAudioCapture/{0}")]
198198
CreateAudioCapture(scap_cpal::CapturerError),
199199
#[error("StartCapturingAudio/{0}")]
200-
StartCapturingAudio(SendError<audio::StartCapturing, cpal::PlayStreamError>),
200+
StartCapturingAudio(
201+
String, /* SendError<audio::StartCapturing, cpal::PlayStreamError> */
202+
),
201203
#[error("Closed")]
202204
Closed,
203205
}
@@ -289,7 +291,7 @@ impl PipelineSourceTask for ScreenCaptureSource<AVFrameCapture> {
289291
audio_capture
290292
.ask(audio::StartCapturing)
291293
.await
292-
.map_err(SourceError::StartCapturingAudio)?;
294+
.map_err(|v| SourceError::StartCapturingAudio(v.to_string()))?;
293295

294296
Some(audio_capture)
295297
} else {

0 commit comments

Comments
 (0)