diff --git a/src/rtsp/gst/sender.rs b/src/rtsp/gst/sender.rs index 40b08d1..2bb557a 100644 --- a/src/rtsp/gst/sender.rs +++ b/src/rtsp/gst/sender.rs @@ -500,7 +500,7 @@ impl NeoMediaSender { if self.inited { if let (Some(buffer_start), Some(buffer_end)) = (buffer.start_time(), buffer.end_time()) { - let runtime = self.get_buftime().unwrap_or(Duration::ZERO); + let runtime = self.get_buftime().unwrap_or(self.last_sent_time); if runtime < buffer_start.saturating_sub(LATENCY * 2) || runtime > buffer_end.saturating_add(LATENCY * 2) { diff --git a/src/rtsp/gst/server.rs b/src/rtsp/gst/server.rs index 04ff087..50ffdc4 100644 --- a/src/rtsp/gst/server.rs +++ b/src/rtsp/gst/server.rs @@ -187,6 +187,7 @@ impl NeoRtspServer { .map(|amt| amt > 0) .unwrap_or(false) }) { + info!("Removing Session Media"); RTSPFilterResult::Remove } else { RTSPFilterResult::Keep