From c5b1ebc7d86872abbd5bd01559b35bfc3d96d0e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 5 Sep 2024 13:01:15 +0300 Subject: [PATCH] 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: --- net/mpegtslive/src/mpegtslive/imp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mpegtslive/src/mpegtslive/imp.rs b/net/mpegtslive/src/mpegtslive/imp.rs index 77fff466..d28987aa 100644 --- a/net/mpegtslive/src/mpegtslive/imp.rs +++ b/net/mpegtslive/src/mpegtslive/imp.rs @@ -194,8 +194,8 @@ impl MpegTSLiveSourceState { monotonic_time, ); self.external_clock.add_observation( - gst::ClockTime::from(new_pcr.saturating_sub(base_pcr)) + base_monotonic, monotonic_time, + gst::ClockTime::from(new_pcr.saturating_sub(base_pcr)) + base_monotonic, ); } else { let (internal, external, num, denom) = self.external_clock.calibration();