rtpjitterbuffer: Fix rtp_jitter_buffer_get_ts_diff() fill level calculation
authorSebastian Dröge <sebastian@centricular.com>
Tue, 12 Apr 2016 07:15:39 +0000 (10:15 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 12 Apr 2016 07:17:57 +0000 (10:17 +0300)
commit4a0de53cc17fa4ee9762df0f58d7a29729eb4939
treed7e752c607de47072c3583b24dd67e05ebd0ad8d
parent95dc198563c88b59c27dc842eb95030d8a07e6dc
rtpjitterbuffer: Fix rtp_jitter_buffer_get_ts_diff() fill level calculation

The head of the queue is the oldest packet (as in lowest seqnum), the tail is
the newest packet. To calculate the fill level, we should calculate tail-head
while considering wraparounds. Not the other way around.

Other code is already doing this in the correct order.

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