Skip to content

🎥 Make videos programmatically with React

this is the proper fix

Jonny Burgerf0867c76cb31
diff --git a/packages/renderer/rust/frame_cache.rs b/packages/renderer/rust/frame_cache.rs
index 2ad397e7a4..6726e9460b 100644
--- a/packages/renderer/rust/frame_cache.rs
+++ b/packages/renderer/rust/frame_cache.rs
@@ -174,7 +174,9 @@ impl FrameCache {
}
}
- if best_distance > threshold {
+ let has_pts_after = self.items.iter().any(|item| item.resolved_pts >= time);
+
+ if best_distance > threshold || !has_pts_after {
return Ok(None);
}