mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
jitterbuffer: keep track of last seqnum and dts
This commit is contained in:
parent
652ce95ca6
commit
c4dc159656
1 changed files with 7 additions and 1 deletions
|
@ -167,7 +167,10 @@ struct _GstRtpJitterBufferPrivate
|
|||
GstClockTime ips_dts;
|
||||
guint64 ips_rtptime;
|
||||
GstClockTime packet_spacing;
|
||||
|
||||
/* the next expected seqnum we receive */
|
||||
GstClockTime last_in_dts;
|
||||
guint32 last_in_seqnum;
|
||||
guint32 next_in_seqnum;
|
||||
|
||||
GArray *timers;
|
||||
|
@ -1777,8 +1780,11 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent,
|
|||
/* unknow first seqnum */
|
||||
do_next_seqnum = TRUE;
|
||||
}
|
||||
if (do_next_seqnum)
|
||||
if (do_next_seqnum) {
|
||||
priv->last_in_seqnum = seqnum;
|
||||
priv->last_in_dts = dts;
|
||||
priv->next_in_seqnum = (seqnum + 1) & 0xffff;
|
||||
}
|
||||
|
||||
/* let's check if this buffer is too late, we can only accept packets with
|
||||
* bigger seqnum than the one we last pushed. */
|
||||
|
|
Loading…
Reference in a new issue