summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2008-11-10 15:26:40 +0000
committerWim Taymans <wim.taymans@gmail.com>2008-11-10 15:26:40 +0000
commita1d2af2cdb7b5d7de3bb7fdf50241229fc1761e0 (patch)
tree3226be36181ca35d5fe24d0cf928de0a309bc33a /gst
parent4cf27a73513ebedb5cbc576357b0182958842ff3 (diff)
downloadgst-plugins-bad-a1d2af2cdb7b5d7de3bb7fdf50241229fc1761e0.tar.gz
gst-plugins-bad-a1d2af2cdb7b5d7de3bb7fdf50241229fc1761e0.tar.bz2
gst-plugins-bad-a1d2af2cdb7b5d7de3bb7fdf50241229fc1761e0.zip
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.
Diffstat (limited to 'gst')
-rw-r--r--gst/rtpmanager/gstrtpjitterbuffer.c10
1 files changed, 5 insertions, 5 deletions
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);