Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(recording): handle QueueFrameError::Finished in camera-writer-repro

Richie McIlroyee8fc8be1b49
diff --git a/crates/recording/examples/camera-writer-repro.rs b/crates/recording/examples/camera-writer-repro.rs
index 20c96497d..4c1140f5b 100644
--- a/crates/recording/examples/camera-writer-repro.rs
+++ b/crates/recording/examples/camera-writer-repro.rs
@@ -301,6 +301,10 @@ fn main() -> anyhow::Result<()> {
queue_failures.push("Failed".to_string());
break;
}
+ Err(QueueFrameError::Finished) => {
+ queue_failures.push("Finished".to_string());
+ break;
+ }
Err(err) => {
queue_failures.push(err.to_string());
break;