mux: collapse MkvStream::create/create_at into one create(.., Option<&Path>)

One method per action (CLAUDE.md), not a foo_with_X pair — create_at was the real
constructor and create was a None wrapper. Callers pass Option<&Path> directly.
This commit is contained in:
Matthew Jackson
2026-07-17 21:31:29 -07:00
parent 37832ac2dd
commit 43c1f9bda0
3 changed files with 15 additions and 18 deletions
+1 -1
View File
@@ -479,7 +479,7 @@ pub fn output(
IO_BUF_SIZE,
crate::io::WritebackFile::create_with_size_hint(path, title.size_bytes)?,
));
Ok(Box::new(MkvStream::create_at(writer, title, Some(path))?))
Ok(Box::new(MkvStream::create(writer, title, Some(path))?))
}
StreamUrl::M2ts { ref path } => {
validate_file_path(path, "m2ts")?;