rtpjitterbuffer: don't stop looping if event found in the queue
authorAleix Conchillo FlaquƩ <aleix@oblong.com>
Tue, 13 May 2014 19:25:04 +0000 (12:25 -0700)
committerWim Taymans <wtaymans@redhat.com>
Wed, 14 May 2014 08:23:28 +0000 (10:23 +0200)
commitbcd469ff316086e0f6db0a5af2dc7cc3eea938fd
tree9532ee0cee37469c5e84d728a9bc68348da32e26
parent8ac30d4c260dc9b40be5a84de28b0a0fe68e6a8c
rtpjitterbuffer: don't stop looping if event found in the queue

If we are inserting a packet into the jitter queue we need to keep
looping through the items until the right position is found. Currently,
the code stops as soon as an event is found in the queue.

Regarding events, we should only move packets before an event if there
is another packet before the event that has a larger seqnum.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=730078
gst/rtpmanager/rtpjitterbuffer.c