Skip to content

Commit ef47a9d

Browse files
fixes
1 parent b5b7e39 commit ef47a9d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

apps/desktop/src-tauri/src/recording.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use cap_project::{
77
TimelineConfiguration, TimelineSegment, UploadMeta, ZoomMode, ZoomSegment,
88
cursor::CursorEvents,
99
};
10+
use cap_recording::PipelineDoneError;
1011
use cap_recording::{
1112
RecordingError, RecordingMode,
1213
feeds::{camera, microphone},
@@ -547,7 +548,7 @@ pub async fn start_recording(
547548
}
548549
.await;
549550

550-
let actor_done_rx = match spawn_actor_res {
551+
let actor_done_fut = match spawn_actor_res {
551552
Ok(rx) => rx,
552553
Err(err) => {
553554
let _ = RecordingEvent::Failed { error: err.clone() }.emit(&app);
@@ -608,7 +609,7 @@ pub async fn start_recording(
608609
dialog.blocking_show();
609610

610611
// this clears the current recording for us
611-
handle_recording_end(app, Err(e), &mut state, recording_dir)
612+
handle_recording_end(app, Err(e.to_string()), &mut state, recording_dir)
612613
.await
613614
.ok();
614615
}
@@ -766,7 +767,7 @@ async fn handle_recording_end(
766767
}
767768
}
768769
RecordingMetaInner::Instant(meta) => {
769-
*meta = InstantRecordingMeta::Failed { error };
770+
*meta = InstantRecordingMeta::Failed { error: error };
770771
}
771772
}
772773
project_meta

crates/recording/src/instant_recording.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl Message<Stop> for Actor {
108108

109109
Ok(CompletedRecording {
110110
project_path: self.recording_dir.clone(),
111-
meta: InstantRecordingMeta {
111+
meta: InstantRecordingMeta::Complete {
112112
fps: self.video_info.fps(),
113113
sample_rate: None,
114114
},

0 commit comments

Comments
 (0)