From 90342ff90e19665e3bba5b5b92e1c756ac814613 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 16 Jan 2024 13:46:34 +0100 Subject: [PATCH] livesync: properly format jitter in debug logs Easier to read that way. Part-of: --- utils/livesync/src/livesync/imp.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/utils/livesync/src/livesync/imp.rs b/utils/livesync/src/livesync/imp.rs index fa155689..288a44d9 100644 --- a/utils/livesync/src/livesync/imp.rs +++ b/utils/livesync/src/livesync/imp.rs @@ -1034,7 +1034,13 @@ impl LiveSync { ); let (res, jitter) = MutexGuard::unlocked(&mut state, || clock_id.wait()); - gst::trace!(CAT, imp: self, "Clock returned {res:?} {jitter}",); + gst::trace!( + CAT, + imp: self, + "Clock returned {res:?} {}{}", + if jitter.is_negative() { "-" } else { "" }, + gst::ClockTime::from_nseconds(jitter.unsigned_abs()) + ); if res == Err(gst::ClockError::Unscheduled) { return Err(gst::FlowError::Flushing);