Safer waiting time

This commit is contained in:
Benjamin Bädorf 2020-11-19 21:26:46 +01:00
parent 25f8d903ad
commit 1e7042f195
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C

View file

@ -201,7 +201,7 @@ fn record_screen(config: &mut Config, output: SwayOutput) -> Result<Vec<Box<Chil
// TODO: This is slow, ugly, and prone to failure. ffmpeg will fail if wf-recorder isn't // TODO: This is slow, ugly, and prone to failure. ffmpeg will fail if wf-recorder isn't
// writing yet, however I'm not sure how to get an exact timing of when it's okay to start // writing yet, however I'm not sure how to get an exact timing of when it's okay to start
// reading from the device. // reading from the device.
thread::sleep(time::Duration::from_millis(40)); thread::sleep(time::Duration::from_millis(100));
let upscaler = Command::new("ffmpeg") let upscaler = Command::new("ffmpeg")
.args(&[ .args(&[