Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

pub spawn fn

Brendan Allan8ec9bfb59ded
diff --git a/crates/rendering/src/decoder/ffmpeg.rs b/crates/rendering/src/decoder/ffmpeg.rs
index 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();