Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

chore: propagate timeline segment name field to call sites

Richie McIlroy3971073f718b
diff --git a/apps/desktop/src-tauri/examples/desktop-display-transport-benchmark.rs b/apps/desktop/src-tauri/examples/desktop-display-transport-benchmark.rs
index 78527f481..4981b0340 100644
--- a/apps/desktop/src-tauri/examples/desktop-display-transport-benchmark.rs
+++ b/apps/desktop/src-tauri/examples/desktop-display-transport-benchmark.rs
@@ -128,6 +128,7 @@ async fn load_recording(
start: 0.0,
end: duration,
timescale: 1.0,
+ name: None,
}]
}
StudioRecordingMeta::MultipleSegments { inner } => inner
@@ -145,6 +146,7 @@ async fn load_recording(
start: 0.0,
end: duration,
timescale: 1.0,
+ name: None,
})
})
.collect(),
diff --git a/crates/editor/examples/editor-playback-benchmark.rs b/crates/editor/examples/editor-playback-benchmark.rs
index b0c28af0b..a2e196dbc 100644
--- a/crates/editor/examples/editor-playback-benchmark.rs
+++ b/crates/editor/examples/editor-playback-benchmark.rs
@@ -325,6 +325,7 @@ async fn load_recording(
start: 0.0,
end: duration,
timescale: 1.0,
+ name: None,
}]
}
StudioRecordingMeta::MultipleSegments { inner } => inner
@@ -342,6 +343,7 @@ async fn load_recording(
start: 0.0,
end: duration,
timescale: 1.0,
+ name: None,
})
})
.collect(),
diff --git a/crates/editor/examples/playback-pipeline-benchmark.rs b/crates/editor/examples/playback-pipeline-benchmark.rs
index e7b9c0d01..ccdaa2c2c 100644
--- a/crates/editor/examples/playback-pipeline-benchmark.rs
+++ b/crates/editor/examples/playback-pipeline-benchmark.rs
@@ -275,6 +275,7 @@ async fn load_recording(
start: 0.0,
end: duration,
timescale: 1.0,
+ name: None,
}]
}
StudioRecordingMeta::MultipleSegments { inner } => inner
@@ -295,6 +296,7 @@ async fn load_recording(
start: 0.0,
end: duration,
timescale: 1.0,
+ name: None,
})
})
.collect(),
diff --git a/crates/editor/src/audio.rs b/crates/editor/src/audio.rs
index 448896518..e4400eeca 100644
--- a/crates/editor/src/audio.rs
+++ b/crates/editor/src/audio.rs
@@ -749,36 +749,42 @@ mod tests {
timescale: 1.0,
start: 0.0,
end: 1.0,
+ name: None,
},
TimelineSegment {
recording_clip: 0,
timescale: 4.0,
start: 1.0,
end: 2.0,
+ name: None,
},
TimelineSegment {
recording_clip: 0,
timescale: 1.0,
start: 2.0,
end: 3.0,
+ name: None,
},
TimelineSegment {
recording_clip: 1,
timescale: 1.0,
start: 0.0,
end: 1.0,
+ name: None,
},
TimelineSegment {
recording_clip: 1,
timescale: 2.0,
start: 1.0,
end: 2.0,
+ name: None,
},
TimelineSegment {
recording_clip: 1,
timescale: 1.0,
start: 2.0,
end: 3.0,
+ name: None,
},
],
zoom_segments: Vec::new(),
@@ -901,6 +907,7 @@ mod tests {
timescale,
start,
end,
+ name: None,
}
}
diff --git a/crates/editor/src/editor_instance.rs b/crates/editor/src/editor_instance.rs
index 146bdcf94..68dbb7a27 100644
--- a/crates/editor/src/editor_instance.rs
+++ b/crates/editor/src/editor_instance.rs
@@ -146,6 +146,7 @@ impl EditorInstance {
start: 0.0,
end: duration,
timescale: 1.0,
+ name: None,
}],
_ => {
warn!(
@@ -177,6 +178,7 @@ impl EditorInstance {
start: 0.0,
end: duration,
timescale: 1.0,
+ name: None,
})
})
.collect(),
diff --git a/crates/export/src/lib.rs b/crates/export/src/lib.rs
index 58d567229..c8d53e4c9 100644
--- a/crates/export/src/lib.rs
+++ b/crates/export/src/lib.rs
@@ -116,6 +116,7 @@ impl ExporterBuilder {
start: 0.0,
end: duration,
timescale: 1.0,
+ name: None,
})
})
.collect();
diff --git a/crates/recording/src/recovery.rs b/crates/recording/src/recovery.rs
index eb40ff3fb..2eba7e914 100644
--- a/crates/recording/src/recovery.rs
+++ b/crates/recording/src/recovery.rs
@@ -1411,6 +1411,7 @@ impl RecoveryManager {
start: 0.0,
end: duration,
timescale: 1.0,
+ name: None,
})
})
.collect();
diff --git a/crates/recording/src/studio_recording.rs b/crates/recording/src/studio_recording.rs
index b3d50f167..3789bcd05 100644
--- a/crates/recording/src/studio_recording.rs
+++ b/crates/recording/src/studio_recording.rs
@@ -1098,6 +1098,7 @@ async fn stop_recording(
start: 0.0,
end: segment.duration,
timescale: 1.0,
+ name: None,
})
})
.collect();