From 49fdc6dd7b1a166846df75f17f9902de5043b634 Mon Sep 17 00:00:00 2001 From: dyknon Date: Sun, 2 Mar 2025 03:24:49 +0900 Subject: show delay. --- src/source.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/source.rs') diff --git a/src/source.rs b/src/source.rs index a99bcd2..2563a99 100644 --- a/src/source.rs +++ b/src/source.rs @@ -38,11 +38,9 @@ pub fn main(mut cam: impl CaptStream, mut io: impl Read + Write + Send) loop{ let mut frlock = frame.lock().map_err(|e| anyhow!("{}", e))?; while frlock.is_none(){ - eprintln!("is none"); frlock = cv.wait(frlock).map_err(|e| anyhow!("{}", e))?; } if let Some(fr) = frlock.take(){ - eprintln!("fgot"); drop(frlock); fr.borrow().serialize(&mut io)?; io.flush()?; @@ -58,7 +56,6 @@ pub fn main(mut cam: impl CaptStream, mut io: impl Read + Write + Send) loop{ cam.next(|fr| -> Result<()>{ let mut frlock = frame.lock().map_err(|e| anyhow!("{}", e))?; - eprintln!("fset"); *frlock = Some(OwnedFrame::from_ref(&fr)); Ok(()) })??; -- cgit v1.2.3