mpegtslivesrc: Fix order of parameters passed to add_observation()

The first one should be the internal time, i.e. the monotonic clock time
in our case, and the second one the external time.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1767>
This commit is contained in:
Sebastian Dröge 2024-09-05 13:01:15 +03:00 committed by GStreamer Marge Bot
parent 44f64fb3f6
commit c5b1ebc7d8

View file

@ -194,8 +194,8 @@ impl MpegTSLiveSourceState {
monotonic_time, monotonic_time,
); );
self.external_clock.add_observation( self.external_clock.add_observation(
gst::ClockTime::from(new_pcr.saturating_sub(base_pcr)) + base_monotonic,
monotonic_time, monotonic_time,
gst::ClockTime::from(new_pcr.saturating_sub(base_pcr)) + base_monotonic,
); );
} else { } else {
let (internal, external, num, denom) = self.external_clock.calibration(); let (internal, external, num, denom) = self.external_clock.calibration();