From: Wim Taymans Date: Mon, 19 Aug 2013 19:12:13 +0000 (+0200) Subject: jitterbuffer: rename variables for packet spacing X-Git-Tag: 1.1.4~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf8a0652f353c1d126e377676ab783a063d57c70;p=platform%2Fupstream%2Fgst-plugins-good.git jitterbuffer: rename variables for packet spacing --- diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index 044ffff..f2582d8 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -164,8 +164,8 @@ struct _GstRtpJitterBufferPrivate GstClockTime last_out_dts; GstClockTime last_out_pts; /* last valid input timestamp and rtptime pair */ - GstClockTime last_in_dts; - GstClockTime last_in_rtptime; + GstClockTime ips_dts; + GstClockTime ips_rtptime; GstClockTime packet_spacing; /* the next expected seqnum we receive */ guint32 next_in_seqnum; @@ -1003,8 +1003,8 @@ gst_rtp_jitter_buffer_flush_stop (GstRtpJitterBuffer * jitterbuffer) priv->last_out_dts = -1; priv->last_out_pts = -1; priv->next_seqnum = -1; - priv->last_in_rtptime = -1; - priv->last_in_dts = GST_CLOCK_TIME_NONE; + priv->ips_rtptime = -1; + priv->ips_dts = GST_CLOCK_TIME_NONE; priv->packet_spacing = 0; priv->next_in_seqnum = -1; priv->clock_rate = -1; @@ -1749,21 +1749,21 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent, do_next_seqnum = TRUE; } /* reset spacing estimation when gap */ - priv->last_in_rtptime = -1; - priv->last_in_dts = -1; + priv->ips_rtptime = -1; + priv->ips_dts = -1; } else { /* packet is expected, we need consecutive seqnums with a different * rtptime to estimate the packet spacing. */ - if (priv->last_in_rtptime != rtptime) { + if (priv->ips_rtptime != rtptime) { /* rtptime changed, check dts diff */ - if (priv->last_in_dts != -1 && dts != -1 && dts > priv->last_in_dts) { - priv->packet_spacing = dts - priv->last_in_dts; + if (priv->ips_dts != -1 && dts != -1 && dts > priv->ips_dts) { + priv->packet_spacing = dts - priv->ips_dts; GST_DEBUG_OBJECT (jitterbuffer, "new packet spacing %" GST_TIME_FORMAT, GST_TIME_ARGS (priv->packet_spacing)); } - priv->last_in_rtptime = rtptime; - priv->last_in_dts = dts; + priv->ips_rtptime = rtptime; + priv->ips_dts = dts; } do_next_seqnum = TRUE; }