record-daemon: refactor and cleanup
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user