rtpjitterbuffer: init packet spacing on first buffer
Already init the packet spacing variables on the first buffer so that we can calculate the spacing on the second buffer already.
This commit is contained in:
parent
ee75d4b01e
commit
65606a25bf
@ -1935,6 +1935,9 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent,
|
|||||||
* while we wait */
|
* while we wait */
|
||||||
set_timer (jitterbuffer, TIMER_TYPE_DEADLINE, seqnum, dts);
|
set_timer (jitterbuffer, TIMER_TYPE_DEADLINE, seqnum, dts);
|
||||||
do_next_seqnum = TRUE;
|
do_next_seqnum = TRUE;
|
||||||
|
/* take rtptime and dts to calculate packet spacing */
|
||||||
|
priv->ips_rtptime = rtptime;
|
||||||
|
priv->ips_dts = dts;
|
||||||
}
|
}
|
||||||
if (do_next_seqnum) {
|
if (do_next_seqnum) {
|
||||||
priv->last_in_seqnum = seqnum;
|
priv->last_in_seqnum = seqnum;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user