mpegtslivesrc: increase threshold for PCR <-> PTS DISCONT

Real-life streams can readily be found with > 1.5 second offsets,
increase to next reasonable random number.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2171>
This commit is contained in:
Mathieu Duponchelle 2025-04-03 13:13:49 +02:00
parent 380918a17c
commit 8972402b90

View file

@ -151,8 +151,8 @@ impl MpegTsPcr {
let pcr = gst::ClockTime::from(self);
let absdiff = pts.absdiff(pcr);
// Fast paths, no wraparounds and close to the PCR as it should (< 1s is required by T-STD)
let threshold = gst::ClockTime::from_mseconds(1500);
// Fast paths, no wraparounds and close (enough) to the PCR as it should (< 1s is required by T-STD)
let threshold = gst::ClockTime::from_mseconds(5000);
if absdiff <= threshold {
return Some(pts);
}