Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
pub spawn fn
Brendan Allan8ec9bfb59ded
diff --git a/crates/rendering/src/decoder/ffmpeg.rs b/crates/rendering/src/decoder/ffmpeg.rsindex f45d1bb3a..aa9a7ab63 100644--- a/crates/rendering/src/decoder/ffmpeg.rs+++ b/crates/rendering/src/decoder/ffmpeg.rs@@ -73,7 +73,12 @@ enum CachedFrameData {pub struct FfmpegDecoder;impl FfmpegDecoder {- fn spawn(name: &'static str, path: PathBuf, fps: u32, rx: mpsc::Receiver<VideoDecoderMessage>) {+ pub fn spawn(+ name: &'static str,+ path: PathBuf,+ fps: u32,+ rx: mpsc::Receiver<VideoDecoderMessage>,+ ) {std::thread::spawn(move || {let mut input = ffmpeg::format::input(&path).unwrap();