jitterbuffer: advance expected seqnum after dropping
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 6 Nov 2013 11:40:06 +0000 (12:40 +0100)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 13 Nov 2013 11:02:57 +0000 (12:02 +0100)
After dropping a buffer, move our expected seqnum

Conflicts:
gst/rtpmanager/gstrtpjitterbuffer.c

gst/rtpmanager/gstrtpjitterbuffer.c

index 0f63945a79bfeb3cd1b8cddf3baec6d46c48810f..c6fe94e8b7385391f3e9a875778b8c3391b4f74a 100644 (file)
@@ -2084,6 +2084,7 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent,
       old_item = rtp_jitter_buffer_pop (priv->jbuf, &percent);
       GST_DEBUG_OBJECT (jitterbuffer, "Queue full, dropping old packet %p",
           old_item);
+      priv->next_seqnum = (old_item->seqnum + 1) & 0xffff;
       free_item (old_item);
     }
   }