From ddc15b92a56714f572970d781ff1116bfc33f108 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/livesync/src/livesync/imp.rs b/utils/livesync/src/livesync/imp.rs index 5434defd..ba38a753 100644 --- a/utils/livesync/src/livesync/imp.rs +++ b/utils/livesync/src/livesync/imp.rs @@ -1020,7 +1020,9 @@ 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);