webrtc: fix an off-by-one calculating low-threshold
authorMatthew Waters <matthew@centricular.com>
Wed, 6 May 2020 05:36:19 +0000 (15:36 +1000)
committerMatthew Waters <matthew@centricular.com>
Wed, 6 May 2020 05:49:58 +0000 (15:49 +1000)
commit02c8e66ff1d3e5f72436222459b4aecc439fbe73
tree369d71c74b9122d48e6bb31f2a02a1b326b14380
parentd0b20f8bbaa9e5611258045102ae45c9d6d45d6e
webrtc: fix an off-by-one calculating low-threshold

We were not signalling low-threshold when the previous amount was at
exactly the low-threshold mark.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1247>
ext/webrtc/webrtcdatachannel.c
tests/check/elements/webrtcbin.c