rtpbasedepayload: look at ssrc before sequence numbers
authorMikhail Fludkov <misha@pexip.com>
Sat, 2 Apr 2016 08:37:55 +0000 (10:37 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 3 Apr 2016 08:49:16 +0000 (11:49 +0300)
commit7a206336dd24d368a0933df1a33c69dee3eaae86
tree80e886c20448a724fe51669f9f23cc4c30245965
parent6788003912f5e261530e854e64ebbfe2f9591207
rtpbasedepayload: look at ssrc before sequence numbers

Doing so prevents us dropping buffers in the rare, but possible, situations,
when the stream changes SSRC and new sequence numbers does not differ
much from the last sequence number from previous SSRC. For example:
ssrc - 0xaaaa 101,102,103,104 ssrc - 0xbbbb 102, 103, 104, 105...
In the scenario above we don't want to drop the first 3 packets of
0xbbbb stream.

https://bugzilla.gnome.org/show_bug.cgi?id=764459
gst-libs/gst/rtp/gstrtpbasedepayload.c
tests/check/libs/rtpbasedepayload.c