Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Increase frame decode timeout and add warning log

Richie McIlroy68559d00404d
diff --git a/crates/rendering/src/decoder/mod.rs b/crates/rendering/src/decoder/mod.rs
index 3ab2d9ec0..35f7c1b19 100644
--- a/crates/rendering/src/decoder/mod.rs
+++ b/crates/rendering/src/decoder/mod.rs
@@ -468,9 +468,15 @@ impl AsyncVideoDecoderHandle {
return None;
}
- match tokio::time::timeout(std::time::Duration::from_millis(250), rx).await {
+ match tokio::time::timeout(std::time::Duration::from_millis(1000), rx).await {
Ok(result) => result.ok(),
- Err(_) => None,
+ Err(_) => {
+ tracing::warn!(
+ time = adjusted_time,
+ "Frame decode request timed out after 1000ms"
+ );
+ None
+ }
}
}