Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

passing cloud OCR flag through

matthew-heartfulcd1dc51e1d89
diff --git a/screenpipe-server/src/video.rs b/screenpipe-server/src/video.rs
index d7c223d2a..59ae42927 100644
--- a/screenpipe-server/src/video.rs
+++ b/screenpipe-server/src/video.rs
@@ -32,6 +32,7 @@ impl VideoCapture {
fps: f64,
new_chunk_callback: impl Fn(&str) + Send + Sync + 'static,
save_text_files: bool,
+ cloud_ocr: bool, // Added cloud_ocr parameter
) -> Self {
info!("Starting new video capture");
let (control_tx, mut control_rx) = channel(512);
@@ -54,6 +55,7 @@ impl VideoCapture {
result_sender,
Duration::from_secs_f64(1.0 / fps),
save_text_files,
+ cloud_ocr, // Pass the cloud_ocr flag
)
.await;
});
@@ -349,4 +351,4 @@ async fn start_ffmpeg_process(output_file: &str, fps: f64) -> Result<Child, anyh
debug!("FFmpeg process spawned");
Ok(child)
-}
+}
\ No newline at end of file