Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Fix state matching in SetMicFeed and SetCameraFeed handlers
Richie McIlroy882072924748
diff --git a/crates/recording/src/studio_recording.rs b/crates/recording/src/studio_recording.rsindex 31b78c4d2..c6d2e9fa4 100644--- a/crates/recording/src/studio_recording.rs+++ b/crates/recording/src/studio_recording.rs@@ -229,7 +229,7 @@ impl Message<SetMicFeed> for Actor {type Reply = anyhow::Result<()>;async fn handle(&mut self, msg: SetMicFeed, _: &mut Context<Self, Self::Reply>) -> Self::Reply {- match self.state {+ match self.state.as_ref() {Some(ActorState::Recording { .. }) => {bail!("Pause the recording before changing microphone input")}@@ -254,7 +254,7 @@ impl Message<SetCameraFeed> for Actor {msg: SetCameraFeed,_: &mut Context<Self, Self::Reply>,) -> Self::Reply {- match self.state {+ match self.state.as_ref() {Some(ActorState::Recording { .. }) => {bail!("Pause the recording before changing camera input")}