rtptwcc: fix pruning of ack'ed twcc-packets

Fixes #750

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/645>
This commit is contained in:
Havard Graff 2020-06-17 23:23:58 +02:00 committed by Tim-Philipp Müller
parent 0fcd87e42a
commit e45cc475bd

View file

@ -750,7 +750,7 @@ _prune_sent_packets (RTPTWCCManager * twcc, GArray * twcc_packets)
last_idx = last->seqnum - first->seqnum;
if (last_idx >= twcc->sent_packets->len)
if (last_idx < twcc->sent_packets->len)
g_array_remove_range (twcc->sent_packets, 0, last_idx);
}