Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
clippy
Richie McIlroy039f0e994e9c
diff --git a/crates/rendering/src/decoder/ffmpeg.rs b/crates/rendering/src/decoder/ffmpeg.rsindex f92a016b9..82cb103fb 100644--- a/crates/rendering/src/decoder/ffmpeg.rs+++ b/crates/rendering/src/decoder/ffmpeg.rs@@ -300,9 +300,7 @@ impl FfmpegDecoder {if sender.send(data.frame.clone()).is_err() {log::warn!(- "FFmpeg '{}': Failed to send cached frame {}: receiver dropped",- name,- requested_frame+ "FFmpeg '{name}': Failed to send cached frame {requested_frame}: receiver dropped");}*last_sent_frame.borrow_mut() = Some(data);@@ -327,12 +325,12 @@ impl FfmpegDecoder {continue;}- if requested_frame <= MAX_FRAME_TOLERANCE {- if let Some(first_frame) = first_ever_frame.borrow().clone() {- *last_sent_frame.borrow_mut() = Some(first_frame.clone());- let _ = sender.send(first_frame.frame);- continue;- }+ if requested_frame <= MAX_FRAME_TOLERANCE+ && let Some(first_frame) = first_ever_frame.borrow().clone()+ {+ *last_sent_frame.borrow_mut() = Some(first_frame.clone());+ let _ = sender.send(first_frame.frame);+ continue;}let _ = this.reset(requested_time);diff --git a/crates/rendering/src/decoder/media_foundation.rs b/crates/rendering/src/decoder/media_foundation.rsindex 706ff986d..bc5c3ad3a 100644--- a/crates/rendering/src/decoder/media_foundation.rs+++ b/crates/rendering/src/decoder/media_foundation.rs@@ -1,3 +1,5 @@+#![allow(dead_code)]+use std::{collections::BTreeMap,path::PathBuf,