Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix: address PR review feedback
Cursor Agente53808aa0f8b
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex 6dbeda898..d7ce869c9 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -161,8 +161,14 @@ impl Renderer {if let Some(prev) = pipeline_frame {(self.frame_cb)(EditorFrameOutput::Nv12(prev));}- if let Some(Ok(current_frame)) = frame_renderer.flush_pipeline_nv12().await {- (self.frame_cb)(EditorFrameOutput::Nv12(current_frame));+ match frame_renderer.flush_pipeline_nv12().await {+ Some(Ok(current_frame)) => {+ (self.frame_cb)(EditorFrameOutput::Nv12(current_frame));+ }+ Some(Err(e)) => {+ tracing::warn!(error = %e, "Failed to flush NV12 pipeline frame");+ }+ None => {}}}Err(e) => {diff --git a/crates/gpu-converters/src/uyvy_nv12/mod.rs b/crates/gpu-converters/src/uyvy_nv12/mod.rsindex 142e2be65..c083ec479 100644--- a/crates/gpu-converters/src/uyvy_nv12/mod.rs+++ b/crates/gpu-converters/src/uyvy_nv12/mod.rs@@ -14,12 +14,6 @@ impl UYVYToNV12 {pub async fn new() -> Self {todo!("implement UV downsampling for UYVYToNV12");- #[cfg(target_os = "windows")]- let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor {- backends: wgpu::Backends::DX12 | wgpu::Backends::VULKAN,- ..Default::default()- });- #[cfg(not(target_os = "windows"))]let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor::default());let adapter = instancediff --git a/crates/rendering/src/decoder/mod.rs b/crates/rendering/src/decoder/mod.rsindex 07de65e68..64d6e8926 100644--- a/crates/rendering/src/decoder/mod.rs+++ b/crates/rendering/src/decoder/mod.rs@@ -729,13 +729,19 @@ pub async fn spawn_decoder(status,})}- Ok(Ok(Err(e))) => Err(format!("MediaFoundation initialization failed: {e}")),- Ok(Err(e)) => Err(format!("MediaFoundation channel closed: {e}")),+ Ok(Ok(Err(e))) => Err(format!(+ "'{name}' MediaFoundation initialization failed: {e} ({path_display})"+ )),+ Ok(Err(e)) => Err(format!(+ "'{name}' MediaFoundation channel closed: {e} ({path_display})"+ )),Err(_) => Err(format!(- "MediaFoundation timed out after 30s initializing: {path_display}"+ "'{name}' MediaFoundation timed out after 30s initializing: {path_display}")),},- Err(e) => Err(format!("MediaFoundation spawn failed: {e}")),+ Err(e) => Err(format!(+ "'{name}' MediaFoundation spawn failed: {e} ({path_display})"+ )),}};