From 65606a25bf1a1e6a311337633ca18bfab42a2486 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 18 Sep 2013 16:29:37 +0200 Subject: [PATCH] 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. --- gst/rtpmanager/gstrtpjitterbuffer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index cf3395696a..2862795817 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -1935,6 +1935,9 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent, * while we wait */ set_timer (jitterbuffer, TIMER_TYPE_DEADLINE, seqnum, dts); do_next_seqnum = TRUE; + /* take rtptime and dts to calculate packet spacing */ + priv->ips_rtptime = rtptime; + priv->ips_dts = dts; } if (do_next_seqnum) { priv->last_in_seqnum = seqnum;