fixes
This commit is contained in:
parent
3eb14ef9ea
commit
06f8cc0829
@ -62,7 +62,6 @@ pub async fn eye_ball(
|
||||
std::sync::atomic::AtomicU64::new(0);
|
||||
let n = FRAME.fetch_add(1, std::sync::atomic::Ordering::Relaxed);
|
||||
if n % 120 == 0 {
|
||||
// trace!("eye{eye}: delivered {n} frames");
|
||||
trace!(target: "lesavka_server::video", "eye-{eye}: delivered {n} frames");
|
||||
if enabled!(Level::TRACE) {
|
||||
let path = format!("/tmp/eye-{eye}-srv-{:05}.h264", n);
|
||||
@ -70,12 +69,6 @@ pub async fn eye_ball(
|
||||
}
|
||||
}
|
||||
|
||||
// write first IDR to disk (quick sanity check)
|
||||
if n == 0 {
|
||||
// let map = buffer.map_readable().map_err(|_| gst::FlowError::Error)?;
|
||||
std::fs::write(format!("/tmp/eye-{eye}-idr.h264"), map.as_slice()).ok();
|
||||
}
|
||||
|
||||
/* -------- detect SPS / IDR ---- */
|
||||
if enabled!(Level::DEBUG) {
|
||||
if let Some(&nal) = map.as_slice().get(4) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user