Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(desktop): continue on camera frame stall instead of pausing after first frame

Richie McIlroy37df04fc3ee5
diff --git a/apps/desktop/src-tauri/src/camera.rs b/apps/desktop/src-tauri/src/camera.rs
index 39ac41ee7..1ab210d87 100644
--- a/apps/desktop/src-tauri/src/camera.rs
+++ b/apps/desktop/src-tauri/src/camera.rs
@@ -725,7 +725,11 @@ impl Renderer {
}
},
_ = tokio::time::sleep(frame_timeout) => {
- warn!("Camera preview: no frames received within timeout, entering paused state");
+ if received_first_frame {
+ warn!("Camera preview: frames stalled, waiting for feed refresh");
+ continue;
+ }
+ warn!("Camera preview: no frames received within startup timeout, entering paused state");
is_paused = true;
pause_and_hide();
continue 'main_loop;