summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--gst/rtpmanager/gstrtpjitterbuffer.c10
2 files changed, 12 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index fc1f24c5..a6c74c5b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-11-10 Wim Taymans <wim.taymans@collabora.co.uk>
+
+ * 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.
+
2008-11-10 Edward Hervey <edward.hervey@collabora.co.uk>
* gst-libs/gst/app/gstappsink.c:
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);