mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-18 05:45:14 +00:00
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:
parent
13dae0f0d0
commit
f94ecfc7a6
1 changed files with 2 additions and 2 deletions
|
@ -1022,8 +1022,8 @@ impl LiveSync {
|
||||||
clock_id.time(),
|
clock_id.time(),
|
||||||
);
|
);
|
||||||
|
|
||||||
let (res, _) = MutexGuard::unlocked(&mut state, || clock_id.wait());
|
let (res, jitter) = MutexGuard::unlocked(&mut state, || clock_id.wait());
|
||||||
gst::trace!(CAT, imp: self, "Clock returned {res:?}",);
|
gst::trace!(CAT, imp: self, "Clock returned {res:?} {jitter}",);
|
||||||
|
|
||||||
if res == Err(gst::ClockError::Unscheduled) {
|
if res == Err(gst::ClockError::Unscheduled) {
|
||||||
return Err(gst::FlowError::Flushing);
|
return Err(gst::FlowError::Flushing);
|
||||||
|
|
Loading…
Reference in a new issue