Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@onestream.live>2024-01-16 15:46:34 +0300
committerGuillaume Desmottes <guillaume.desmottes@onestream.live>2024-01-16 15:46:34 +0300
commitc616423edbd4ed442f8f37bfbe14008c5c67d533 (patch)
treef0bd867be165b0f94f2558dd540c5815c69def0e
parent9556abb162aee996296ce893238e2c1bb5842704 (diff)
livesync: properly format jitter in debug logs
Easier to read that way. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1430>
-rw-r--r--utils/livesync/src/livesync/imp.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/livesync/src/livesync/imp.rs b/utils/livesync/src/livesync/imp.rs
index 5434defd3..ba38a7536 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);