Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(editor): preserve prefetch across missing offsets

Richie McIlroy0132884926a0
diff --git a/crates/editor/src/editor_instance.rs b/crates/editor/src/editor_instance.rs
index 6e910b083..13da788c5 100644
--- a/crates/editor/src/editor_instance.rs
+++ b/crates/editor/src/editor_instance.rs
@@ -778,13 +778,13 @@ impl EditorInstance {
prefetch_frame as f64 / fps as f64,
)
else {
- break;
+ continue;
};
let Some(prefetch_segment_media) = this
.segment_medias
.get(prefetch_segment.recording_clip as usize)
else {
- break;
+ continue;
};
let prefetch_clip_offsets = project
.clips