record-daemon: refactor and cleanup

This commit is contained in:
vhaudiquet committed 2026-03-21 00:05:46 +01:00
1 parent 1166424c29
commit 03e36d0f1b
12 files changed
+140 -139

No files matched your search

+7
View File
@@ -90,6 +90,13 @@ pub struct OutputSettings {
pub split_time_minutes: u32,
}
impl OutputSettings {
/// Get the output format enum for this container.
pub fn output_format(&self) -> crate::recording::OutputFormat {
crate::recording::OutputFormat::from(self.container.as_str())
}
}
impl Default for OutputSettings {
fn default() -> Self {
Self {