runtime error handling

This commit is contained in:
Simon
2026-03-29 16:24:49 +00:00
parent 99fe4c947c
commit 243d19cec0
4 changed files with 653 additions and 6 deletions

View File

@@ -431,6 +431,13 @@ impl VideoFormat {
}
self.to_owned()
}
pub fn http_headers_pairs(&self) -> Vec<(String, String)> {
self.http_headers
.clone()
.unwrap_or_default()
.into_iter()
.collect()
}
pub fn format_id(mut self, format_id: String) -> Self {
self.format_id = Some(format_id);
self