Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

chore: initialize audio_segments in default timeline configs

Richie McIlroy609cc88dd090
diff --git a/apps/desktop/src-tauri/src/import.rs b/apps/desktop/src-tauri/src/import.rs
index 1cb13bc49..c94fa6ef8 100644
--- a/apps/desktop/src-tauri/src/import.rs
+++ b/apps/desktop/src-tauri/src/import.rs
@@ -374,6 +374,7 @@ fn ensure_project_timeline<'a>(
text_segments: Vec::new(),
caption_segments: Vec::new(),
keyboard_segments: Vec::new(),
+ audio_segments: Vec::new(),
});
}
diff --git a/apps/desktop/src-tauri/src/recording.rs b/apps/desktop/src-tauri/src/recording.rs
index cd4afc704..e28b20a03 100644
--- a/apps/desktop/src-tauri/src/recording.rs
+++ b/apps/desktop/src-tauri/src/recording.rs
@@ -3564,6 +3564,7 @@ fn project_config_from_recording(
text_segments: Vec::new(),
caption_segments: Vec::new(),
keyboard_segments: Vec::new(),
+ audio_segments: Vec::new(),
});
config
diff --git a/crates/editor/examples/playback-pipeline-benchmark.rs b/crates/editor/examples/playback-pipeline-benchmark.rs
index ccdaa2c2c..d93e80b6f 100644
--- a/crates/editor/examples/playback-pipeline-benchmark.rs
+++ b/crates/editor/examples/playback-pipeline-benchmark.rs
@@ -311,6 +311,7 @@ async fn load_recording(
text_segments: Vec::new(),
caption_segments: Vec::new(),
keyboard_segments: Vec::new(),
+ audio_segments: Vec::new(),
});
}
}
diff --git a/crates/export/src/lib.rs b/crates/export/src/lib.rs
index c8d53e4c9..7ee8f1952 100644
--- a/crates/export/src/lib.rs
+++ b/crates/export/src/lib.rs
@@ -129,6 +129,7 @@ impl ExporterBuilder {
text_segments: Vec::new(),
caption_segments: Vec::new(),
keyboard_segments: Vec::new(),
+ audio_segments: Vec::new(),
});
}
}
diff --git a/crates/recording/src/recovery.rs b/crates/recording/src/recovery.rs
index 2eba7e914..366009f2d 100644
--- a/crates/recording/src/recovery.rs
+++ b/crates/recording/src/recovery.rs
@@ -1431,6 +1431,7 @@ impl RecoveryManager {
text_segments: Vec::new(),
caption_segments: Vec::new(),
keyboard_segments: Vec::new(),
+ audio_segments: Vec::new(),
});
config
diff --git a/crates/recording/src/studio_recording.rs b/crates/recording/src/studio_recording.rs
index 3789bcd05..8ac3f13e5 100644
--- a/crates/recording/src/studio_recording.rs
+++ b/crates/recording/src/studio_recording.rs
@@ -1174,6 +1174,7 @@ async fn stop_recording(
text_segments: Vec::new(),
caption_segments: Vec::new(),
keyboard_segments: Vec::new(),
+ audio_segments: Vec::new(),
});
}
if let Some(clips) = clip_configs {