shorten code

This commit is contained in:
jb-alvarado 2022-04-02 22:53:24 +02:00
parent 084103a600
commit 1063ae28d6

View File

@ -292,13 +292,11 @@ pub fn seek_and_length(src: String, seek: f64, out: f64, duration: f64) -> Vec<S
source_cmd.append(&mut vec![
"-ss".to_string(),
format!("{}", seek).to_string(),
"-i".to_string(),
src.clone(),
])
} else {
source_cmd.append(&mut vec!["-i".to_string(), src.clone()])
}
source_cmd.append(&mut vec!["-i".to_string(), src]);
if duration > out {
source_cmd.append(&mut vec![
"-t".to_string(),