mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-08 02:05:26 +00:00
livesync: properly format jitter in debug logs
Easier to read that way. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1456>
This commit is contained in:
parent
0e9d33b38b
commit
90342ff90e
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue