mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 04:52:28 +00:00
jitterbuffer: improve debug
This commit is contained in:
parent
c395bf62dd
commit
517ea0f4d9
1 changed files with 9 additions and 7 deletions
|
@ -1496,8 +1496,8 @@ add_timer (GstRtpJitterBuffer * jitterbuffer, TimerType type,
|
||||||
gint len;
|
gint len;
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (jitterbuffer,
|
GST_DEBUG_OBJECT (jitterbuffer,
|
||||||
"add timer for seqnum %d to %" GST_TIME_FORMAT,
|
"add timer for seqnum %d to %" GST_TIME_FORMAT ", delay %"
|
||||||
seqnum, GST_TIME_ARGS (timeout));
|
GST_TIME_FORMAT, seqnum, GST_TIME_ARGS (timeout), GST_TIME_ARGS (delay));
|
||||||
|
|
||||||
len = priv->timers->len;
|
len = priv->timers->len;
|
||||||
g_array_set_size (priv->timers, len + 1);
|
g_array_set_size (priv->timers, len + 1);
|
||||||
|
@ -2506,14 +2506,16 @@ wait_next_timeout (GstRtpJitterBuffer * jitterbuffer)
|
||||||
if (!priv->timer_running)
|
if (!priv->timer_running)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (jitterbuffer, "sync done, %d, #%d, %" G_GINT64_FORMAT,
|
if (ret != GST_CLOCK_UNSCHEDULED) {
|
||||||
ret, priv->timer_seqnum, clock_jitter);
|
now = timer_timeout + MAX (clock_jitter, 0);
|
||||||
|
GST_DEBUG_OBJECT (jitterbuffer, "sync done, %d, #%d, %" G_GINT64_FORMAT,
|
||||||
|
ret, priv->timer_seqnum, clock_jitter);
|
||||||
|
} else {
|
||||||
|
GST_DEBUG_OBJECT (jitterbuffer, "sync unscheduled");
|
||||||
|
}
|
||||||
/* and free the entry */
|
/* and free the entry */
|
||||||
gst_clock_id_unref (id);
|
gst_clock_id_unref (id);
|
||||||
priv->clock_id = NULL;
|
priv->clock_id = NULL;
|
||||||
|
|
||||||
if (ret != GST_CLOCK_UNSCHEDULED)
|
|
||||||
now = timer_timeout + MAX (clock_jitter, 0);
|
|
||||||
} else {
|
} else {
|
||||||
/* no timers, wait for activity */
|
/* no timers, wait for activity */
|
||||||
GST_DEBUG_OBJECT (jitterbuffer, "waiting");
|
GST_DEBUG_OBJECT (jitterbuffer, "waiting");
|
||||||
|
|
Loading…
Reference in a new issue