Formatting
This commit is contained in:
@@ -168,7 +168,9 @@ async fn finalize(
|
||||
// non-empty. Real corruption will surface server-side at decode.
|
||||
let event = match timeout(STOP_GRACEFUL_TIMEOUT, child.wait()).await {
|
||||
Ok(Ok(status)) => match tokio::fs::metadata(&output_path).await {
|
||||
Ok(meta) if meta.len() > 0 => RecorderEvent::Finished { output: output_path },
|
||||
Ok(meta) if meta.len() > 0 => RecorderEvent::Finished {
|
||||
output: output_path,
|
||||
},
|
||||
Ok(_) => RecorderEvent::Failed {
|
||||
error: format!("ffmpeg exit {status} and empty output"),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user