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/1387>
This commit is contained in:
Guillaume Desmottes 2023-10-25 14:26:19 +02:00 committed by Sebastian Dröge
parent 4f9d5b7a79
commit dafdb48ff6

View file

@ -1028,8 +1028,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);