mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
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:
parent
f440b074b1
commit
567afdd4d3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue