jitterbuffer: Don't leak duplicate items
authorEdward Hervey <bilboed@bilboed.com>
Thu, 1 Dec 2016 16:08:09 +0000 (17:08 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 2 Dec 2016 08:01:57 +0000 (09:01 +0100)
commite5158ca496ea90a273fb8eeec098a7f0e60671ff
tree44df788de1500edf7f4faee1fc1cb4e3da47f3b8
parent50bb6630f52cee37c46f500e4a87d8802c73f30c
jitterbuffer: Don't leak duplicate items

When providing items with a seqnum, there is a (very small) probability
that an element with the same seqnum already exists. Don't forget
to free that item if it wasn't inserted.

And avoid returning undefined values when dealing with duplicate items
gst/rtpmanager/gstrtpjitterbuffer.c
gst/rtpmanager/rtpjitterbuffer.c