mpegtslivesrc: Reset rate to 1/1 on disconts and flush observations

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1964>
This commit is contained in:
Sebastian Dröge 2024-12-02 18:12:12 +02:00
parent 45519a7d85
commit 050e582366

View file

@ -461,6 +461,12 @@ impl State {
new_pcr = MpegTsPcr::new(pcr);
self.base_pcr = Some(new_pcr);
self.base_external = Some(base_external);
imp.external_clock
.set_calibration(observation_internal, base_external, 1, 1);
// Hack to flush out observations, we set the window-size to the
// same value
imp.external_clock
.set_window_size(imp.external_clock.window_size());
self.discont_pending = true;
}
} else {