mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-09-03 02:03:48 +00:00
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:
parent
380918a17c
commit
8972402b90
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue