Handle jump to live even for a one frame buffer

This commit is contained in:
QuantumEntangledAndy committed 2023-05-16 11:37:20 +07:00
1 parent 84e10530a5
commit 86f15f9eb1
1 file changed
+6 -1
+6 -1
View File
@@ -528,7 +528,12 @@ impl NeoMediaSender {
}
} else {
debug!("Not enough timestamps for target live: {:?}", unique_stamps);
None
if let Some(st) = unique_stamps.first() {
debug!("Setting to 1s behind first frame in buffer");
Some(st - Duration::from_secs(1).as_micros() as FrameTime)
} else {
None
}
}
}