Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Move camera feed consumer attachment earlier
Richie McIlroy54f0fc9cafc1
diff --git a/apps/desktop/src-tauri/src/camera.rs b/apps/desktop/src-tauri/src/camera.rsindex dc2581139..6cb00db29 100644--- a/apps/desktop/src-tauri/src/camera.rs+++ b/apps/desktop/src-tauri/src/camera.rs@@ -123,6 +123,11 @@ impl CameraPreviewManager {) -> anyhow::Result<()> {let (camera_tx, camera_rx) = flume::bounded(4);+ actor+ .ask(feeds::camera::AddSender(camera_tx))+ .await+ .context("Error attaching camera feed consumer")?;+let default_state = self.get_state().map_err(|err| error!("Error getting camera preview state: {err}"))@@ -144,11 +149,6 @@ impl CameraPreviewManager {self.preview = Some(InitializedCameraPreview { reconfigure });- actor- .ask(feeds::camera::AddSender(camera_tx))- .await- .context("Error attaching camera feed consumer")?;-Ok(())}