This commit is contained in:
asonix 2022-09-30 20:02:46 -05:00
parent 0691e86b65
commit 85c5ce955d
2 changed files with 3 additions and 1 deletions

View File

@ -266,7 +266,7 @@ pub(crate) async fn trancsocde_bytes(
tmp_one.close().await?; tmp_one.close().await?;
let output_format = video_codec.to_output_format(); let output_format = video_codec.to_output_format();
let audio_codec = audio_codec.unwrap_or(output_format.default_audio_codec()); let audio_codec = audio_codec.unwrap_or_else(|| output_format.default_audio_codec());
let process = if permit_audio { let process = if permit_audio {
Process::run( Process::run(

View File

@ -12,6 +12,7 @@ use std::path::PathBuf;
use tokio::io::AsyncReadExt; use tokio::io::AsyncReadExt;
use tracing::Instrument; use tracing::Instrument;
#[allow(clippy::too_many_arguments)]
#[tracing::instrument(skip(hash))] #[tracing::instrument(skip(hash))]
pub(crate) async fn generate<R: FullRepo, S: Store + 'static>( pub(crate) async fn generate<R: FullRepo, S: Store + 'static>(
repo: &R, repo: &R,
@ -42,6 +43,7 @@ pub(crate) async fn generate<R: FullRepo, S: Store + 'static>(
Ok((details, bytes)) Ok((details, bytes))
} }
#[allow(clippy::too_many_arguments)]
#[tracing::instrument(skip(hash))] #[tracing::instrument(skip(hash))]
async fn process<R: FullRepo, S: Store + 'static>( async fn process<R: FullRepo, S: Store + 'static>(
repo: &R, repo: &R,