rtpjitterbuffer: Fix calculating next_seqnum when dropping old buffers from a full queue.

Fixes calculating the next sequence number when a ITEM_TYPE_LOST with more than one
definitely lost packets is encountered.

https://bugzilla.gnome.org/show_bug.cgi?id=769757
This commit is contained in:
Thomas Bluemel 2016-08-11 11:04:22 -06:00 committed by Olivier Crête
parent f440b074b1
commit 567afdd4d3

View file

@ -3052,7 +3052,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;
priv->next_seqnum = (old_item->seqnum + old_item->count) & 0xffff;
free_item (old_item);
}
/* we might have removed some head buffers, signal the pushing thread to