From f94ecfc7a6c6fa669d8988cfa68bbb5f7c996b3c Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 25 Oct 2023 14:26:19 +0200 Subject: [PATCH] livesync: display jitter when waiting on clock We already log the result of the clock wait call so may as well log the returned jitter. Part-of: --- utils/livesync/src/livesync/imp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/livesync/src/livesync/imp.rs b/utils/livesync/src/livesync/imp.rs index 3a261461..a6b9f9eb 100644 --- a/utils/livesync/src/livesync/imp.rs +++ b/utils/livesync/src/livesync/imp.rs @@ -1022,8 +1022,8 @@ impl LiveSync { clock_id.time(), ); - let (res, _) = MutexGuard::unlocked(&mut state, || clock_id.wait()); - gst::trace!(CAT, imp: self, "Clock returned {res:?}",); + let (res, jitter) = MutexGuard::unlocked(&mut state, || clock_id.wait()); + gst::trace!(CAT, imp: self, "Clock returned {res:?} {jitter}",); if res == Err(gst::ClockError::Unscheduled) { return Err(gst::FlowError::Flushing);