fix(config): made ffmpeg config section more optional

This commit is contained in:
Didier Slof 2023-05-08 10:42:14 +02:00
parent 05848b6701
commit f68806d814
Signed by: didier
GPG key ID: 01E71F18AA4398E5
4 changed files with 5 additions and 5 deletions

View file

@ -19,7 +19,7 @@ impl TranscodeJob {
pub fn build_command(&self, ffmpeg_config: &ConfigFFmpeg) -> Command {
ffmpeg_config
.build_command_options(&self.input, &self.output)
.to_command(&ffmpeg_config.path)
.to_command(&ffmpeg_config.path.clone().unwrap_or("ffmpeg".to_string()))
}
pub fn check_if_exists(&self) -> bool {