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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1370>
This commit is contained in:
Guillaume Desmottes 2023-10-25 14:26:19 +02:00
parent 13dae0f0d0
commit f94ecfc7a6

View file

@ -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);