record-daemon: refactor and cleanup

This commit is contained in:
2026-03-21 00:05:46 +01:00
parent 1166424c29
commit 03e36d0f1b
12 changed files with 140 additions and 139 deletions

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 {