Fix the jump to live process

This commit is contained in:
QuantumEntangledAndy committed 2023-05-02 10:20:24 +07:00
1 parent 31ac6e4707
commit 84bf5ef05c
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -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)
{
+1
View File
@@ -187,6 +187,7 @@ impl NeoRtspServer {
.map(|amt| amt > 0)
.unwrap_or(false)
}) {
info!("Removing Session Media");
RTSPFilterResult::Remove
} else {
RTSPFilterResult::Keep