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:
parent
0fcd87e42a
commit
e45cc475bd
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user