From a1d2af2cdb7b5d7de3bb7fdf50241229fc1761e0 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 10 Nov 2008 15:26:40 +0000 Subject: gst/rtpmanager/gstrtpjitterbuffer.c: Also configure the next expected output seqnum when we get a seqnum-base on the ... Original commit message from CVS: * gst/rtpmanager/gstrtpjitterbuffer.c: (gst_jitter_buffer_sink_parse_caps), (gst_rtp_jitter_buffer_chain): Also configure the next expected output seqnum when we get a seqnum-base on the caps. --- gst/rtpmanager/gstrtpjitterbuffer.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gst') diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index debf292c..43e758f9 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -485,12 +485,12 @@ gst_jitter_buffer_sink_parse_caps (GstRtpJitterBuffer * jitterbuffer, GST_DEBUG_OBJECT (jitterbuffer, "got clock-base %" G_GINT64_FORMAT, priv->clock_base); - /* first expected seqnum, only update when we didn't have a previous base. */ - if (priv->next_in_seqnum == -1) { - if (gst_structure_get_uint (caps_struct, "seqnum-base", &val)) + if (gst_structure_get_uint (caps_struct, "seqnum-base", &val)) { + /* first expected seqnum, only update when we didn't have a previous base. */ + if (priv->next_in_seqnum == -1) priv->next_in_seqnum = val; - else - priv->next_in_seqnum = -1; + if (priv->next_seqnum == -1) + priv->next_seqnum = val; } GST_DEBUG_OBJECT (jitterbuffer, "got seqnum-base %d", priv->next_in_seqnum); -- cgit v1.2.1