From d6d47039ba10bef4a335ea734553d0c7c3c13347 Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Fri, 12 Apr 2024 11:02:24 +0700 Subject: [PATCH] Report byte levels --- src/rtsp/stream.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rtsp/stream.rs b/src/rtsp/stream.rs index 1350b29..289c4da 100644 --- a/src/rtsp/stream.rs +++ b/src/rtsp/stream.rs @@ -785,6 +785,12 @@ async fn send_to_appsrc> + Unpin>( log::info!("Setting stream to play"); appsrc.set_state(gstreamer::State::Playing).unwrap(); buffer_inited = true; + } else { + log::info!( + "Not yet ready: {}/{}", + appsrc.current_level_bytes(), + appsrc.max_bytes() + ); } } AnyResult::Ok(())