File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
crates/recording/src/sources/screen_capture Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments