Allow more skipping if video is behind

This commit is contained in:
Jeremy Soller 2024-01-25 21:31:12 -07:00
parent 8eface2200
commit c726fca224
2 changed files with 9 additions and 5 deletions

View file

@ -233,8 +233,7 @@ fn ffmpeg_thread<P: AsRef<Path>>(
}
})?;
// This is a sync channel to reduce skipping
let (gpu_frame_tx, gpu_frame_rx) = mpsc::sync_channel::<(Video, Option<Instant>)>(1);
let (gpu_frame_tx, gpu_frame_rx) = mpsc::channel::<(Video, Option<Instant>)>();
thread::Builder::new()
.name("video_map_gpu_cpu".to_string())
.spawn(move || {