mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
jitterbuffer: add more debug
This commit is contained in:
parent
ff825a2919
commit
c5bf376bb5
1 changed files with 6 additions and 2 deletions
|
@ -1448,6 +1448,9 @@ recalculate_timer (GstRtpJitterBuffer * jitterbuffer, TimerData * timer)
|
||||||
if (priv->clock_id) {
|
if (priv->clock_id) {
|
||||||
GstClockTime timeout = get_timeout (jitterbuffer, timer);
|
GstClockTime timeout = get_timeout (jitterbuffer, timer);
|
||||||
|
|
||||||
|
GST_DEBUG ("%" GST_TIME_FORMAT " <> %" GST_TIME_FORMAT,
|
||||||
|
GST_TIME_ARGS (timeout), GST_TIME_ARGS (priv->timer_timeout));
|
||||||
|
|
||||||
if (timeout == -1 || timeout < priv->timer_timeout)
|
if (timeout == -1 || timeout < priv->timer_timeout)
|
||||||
unschedule_current_timer (jitterbuffer);
|
unschedule_current_timer (jitterbuffer);
|
||||||
}
|
}
|
||||||
|
@ -1665,8 +1668,8 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent,
|
||||||
dts = gst_segment_to_running_time (&priv->segment, GST_FORMAT_TIME, dts);
|
dts = gst_segment_to_running_time (&priv->segment, GST_FORMAT_TIME, dts);
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (jitterbuffer,
|
GST_DEBUG_OBJECT (jitterbuffer,
|
||||||
"Received packet #%d at time %" GST_TIME_FORMAT, seqnum,
|
"Received packet #%d at time %" GST_TIME_FORMAT ", discont %d", seqnum,
|
||||||
GST_TIME_ARGS (dts));
|
GST_TIME_ARGS (dts), GST_BUFFER_IS_DISCONT (buffer));
|
||||||
|
|
||||||
JBUF_LOCK_CHECK (priv, out_flushing);
|
JBUF_LOCK_CHECK (priv, out_flushing);
|
||||||
|
|
||||||
|
@ -1973,6 +1976,7 @@ pop_and_push_next (GstRtpJitterBuffer * jitterbuffer, guint16 seqnum)
|
||||||
if (G_UNLIKELY (priv->discont)) {
|
if (G_UNLIKELY (priv->discont)) {
|
||||||
/* set DISCONT flag when we missed a packet. We pushed the buffer writable
|
/* set DISCONT flag when we missed a packet. We pushed the buffer writable
|
||||||
* into the jitterbuffer so we can modify now. */
|
* into the jitterbuffer so we can modify now. */
|
||||||
|
GST_DEBUG_OBJECT (jitterbuffer, "mark output buffer discont");
|
||||||
GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DISCONT);
|
GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DISCONT);
|
||||||
priv->discont = FALSE;
|
priv->discont = FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue