mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
aggregator: Print jitter from clock waiting in the debug logs
This commit is contained in:
parent
9d9a1af45a
commit
713205fbe6
1 changed files with 6 additions and 2 deletions
|
@ -555,6 +555,7 @@ gst_aggregator_wait_and_check (GstAggregator * self, gboolean * timeout)
|
|||
GstClockTime base_time, time;
|
||||
GstClock *clock;
|
||||
GstClockReturn status;
|
||||
GstClockTimeDiff jitter;
|
||||
|
||||
GST_DEBUG_OBJECT (self, "got subclass start time: %" GST_TIME_FORMAT,
|
||||
GST_TIME_ARGS (start));
|
||||
|
@ -587,7 +588,8 @@ gst_aggregator_wait_and_check (GstAggregator * self, gboolean * timeout)
|
|||
gst_object_unref (clock);
|
||||
SRC_STREAM_UNLOCK (self);
|
||||
|
||||
status = gst_clock_id_wait (self->priv->aggregate_id, NULL);
|
||||
jitter = 0;
|
||||
status = gst_clock_id_wait (self->priv->aggregate_id, &jitter);
|
||||
|
||||
SRC_STREAM_LOCK (self);
|
||||
if (self->priv->aggregate_id) {
|
||||
|
@ -595,7 +597,9 @@ gst_aggregator_wait_and_check (GstAggregator * self, gboolean * timeout)
|
|||
self->priv->aggregate_id = NULL;
|
||||
}
|
||||
|
||||
GST_DEBUG_OBJECT (self, "clock returned %d", status);
|
||||
GST_DEBUG_OBJECT (self, "clock returned %d (jitter: %s%" GST_TIME_FORMAT,
|
||||
status, (jitter < 0 ? "-" : ""),
|
||||
GST_TIME_ARGS ((jitter < 0 ? -jitter : jitter)));
|
||||
|
||||
/* we timed out */
|
||||
if (status == GST_CLOCK_OK || status == GST_CLOCK_EARLY) {
|
||||
|
|
Loading…
Reference in a new issue