rtpjitterbuffer: Avoid generation of invalid timestamps
authorEdward Hervey <edward@centricular.com>
Thu, 22 Apr 2021 06:57:23 +0000 (08:57 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 22 Apr 2021 13:23:13 +0000 (15:23 +0200)
commit4d3b8d1129d8b863e4156cd0334e93257b9d0cc4
tree4d9ab75b9029ab5343f99dafab1cd5a105b8797c
parenta2c16ec6324ca15471fff9bed1185ee6ffb8cdf6
rtpjitterbuffer: Avoid generation of invalid timestamps

When updating timestamps and timer timeouts with a new offset, make sure that
the resulting value is valid (and not a negative (signed) value which ends up in
a massive (unsigned) value).

Fixes #571

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/960>
gst/rtpmanager/gstrtpjitterbuffer.c