Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

clippy

Richie McIlroy30cf231f56ce
diff --git a/crates/recording/src/output_pipeline/win_segmented_camera.rs b/crates/recording/src/output_pipeline/win_segmented_camera.rs
index 7f57cd92c..71fbf6fcd 100644
--- a/crates/recording/src/output_pipeline/win_segmented_camera.rs
+++ b/crates/recording/src/output_pipeline/win_segmented_camera.rs
@@ -592,10 +592,10 @@ impl WindowsSegmentedCameraMuxer {
}
}
- if let Ok(mut output_guard) = output_clone.lock() {
- if let Err(e) = encoder.flush(&mut output_guard) {
- warn!("Failed to flush software encoder: {e}");
- }
+ if let Ok(mut output_guard) = output_clone.lock()
+ && let Err(e) = encoder.flush(&mut output_guard)
+ {
+ warn!("Failed to flush software encoder: {e}");
}
Ok(())