mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-28 10:36:18 +00:00
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:
parent
45519a7d85
commit
050e582366
1 changed files with 6 additions and 0 deletions
|
@ -461,6 +461,12 @@ impl State {
|
||||||
new_pcr = MpegTsPcr::new(pcr);
|
new_pcr = MpegTsPcr::new(pcr);
|
||||||
self.base_pcr = Some(new_pcr);
|
self.base_pcr = Some(new_pcr);
|
||||||
self.base_external = Some(base_external);
|
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;
|
self.discont_pending = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue