jitterbuffer: keep track of last seqnum and dts
This commit is contained in:
parent
652ce95ca6
commit
c4dc159656
@ -167,7 +167,10 @@ struct _GstRtpJitterBufferPrivate
|
|||||||
GstClockTime ips_dts;
|
GstClockTime ips_dts;
|
||||||
guint64 ips_rtptime;
|
guint64 ips_rtptime;
|
||||||
GstClockTime packet_spacing;
|
GstClockTime packet_spacing;
|
||||||
|
|
||||||
/* the next expected seqnum we receive */
|
/* the next expected seqnum we receive */
|
||||||
|
GstClockTime last_in_dts;
|
||||||
|
guint32 last_in_seqnum;
|
||||||
guint32 next_in_seqnum;
|
guint32 next_in_seqnum;
|
||||||
|
|
||||||
GArray *timers;
|
GArray *timers;
|
||||||
@ -1777,8 +1780,11 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent,
|
|||||||
/* unknow first seqnum */
|
/* unknow first seqnum */
|
||||||
do_next_seqnum = TRUE;
|
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;
|
priv->next_in_seqnum = (seqnum + 1) & 0xffff;
|
||||||
|
}
|
||||||
|
|
||||||
/* let's check if this buffer is too late, we can only accept packets with
|
/* let's check if this buffer is too late, we can only accept packets with
|
||||||
* bigger seqnum than the one we last pushed. */
|
* bigger seqnum than the one we last pushed. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user